I am subclassing DS.Adapter and impliment the base CRUD functions like, find, findAll, create, delete, update.
Spark.SubmitFormComponent = Ember.Component.extend({
needs: "gameList",
fields: Ember.computed.alias("controllers.gameList.fields"),
printFields: function() {
console.log("Printing Fields in Component");
console.log(this.get("fields"))
}.property()
});
Spark.GameController = Spark.EntityController.extend({
needs: "gameList",
fields: Ember.computed.alias("controllers.gameList.fields"),
printFields: function() {
console.log("Printing Fields in Controller");
console.log(this.get("fields"));
}.property()
});
In one the controller I get the field fine but in the component it’s undefined. Note that that component is used inside that controller.