Sorry for the newbie question. I haven't started using Ember yet. At the moment I'm still studying whether it's suitable for our project. A big attraction of Ember for us is Ember Data. I've been reading the documentation on it. In a lot of the examples, I'd see the following pattern:
App.Requirement = DS.Model.extend({
name: attr('string'),
temperature: attr('temperature')
});
In other places though, I'd see the following:
export default DS.Model.extend({
firstName: DS.attr(),
lastName: DS.attr(),
birthday: DS.attr()
});
Is the App.X = Y
syntax just an obsolete way of exporting a class/function?
Aucun commentaire:
Enregistrer un commentaire