This file contains 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
// save to app/models | |
import DS from "ember-data"; | |
export default DS.Model.extend({ | |
myProperty: DS.attr('object'); | |
}); |
This file contains 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
// Save as routes/application.js | |
import Ember from 'ember'; | |
import ApplicationRouteMixin from 'simple-auth/mixins/application-route-mixin'; | |
export default Ember.Route.extend(ApplicationRouteMixin, { | |
beforeModel: function(transition) { | |
this._super(transition); |
This file contains 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
/* | |
Ember Mixin to fullscreen a component element's. | |
Ensures that an Esc key down will cancel fullscreen. | |
*/ | |
import Em from 'ember'; | |
export default Em.Mixin.create(Em.Evented, { | |
fullscreen: false, |
OlderNewer