This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| notifying the store that a record has been remotely deleted and should be fully removed. | |
| */ | |
| function pushDeletion(store, type, id) { | |
| let record = store.peekRecord(type, id); | |
| if (record !== null) { | |
| let relationships = {}; | |
| let hasRelationships = false; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| isFormValid: false, | |
| childInputs: [], | |
| actions: { | |
| logChildViews: function() { | |
| //do stuff | |
| }, | |
| registerChild(component) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| click() { | |
| this.attrs.toggleHeight(); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #original attribution https://gist.github.com/alexspeller/6251054 & https://gist.github.com/stevekane/6356006 | |
| App.ClickElsewhereMixin = Ember.Mixin.create | |
| #use this method hook to define your desired behavior | |
| onClickElsewhere: Ember.K | |
| #bound version of our instance method | |
| clickHandler: Em.computed -> | |
| Em.run.bind @, 'onClickElsewhere' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{#object-form for=this action="formSubmitted" buttonLabel="Click Me" formClass="narrow"}} | |
| {{form-field for="email"}} | |
| {{form-field for="password" label="Create new password" hint="Minimum 8 characters"}} | |
| {{form-field for="passwordConfirmation" label="Confirm new password"}} | |
| {{/object-form}} |