Ember - What's the difference between controller's content and model property

前端 未结 2 1685
旧巷少年郎
旧巷少年郎 2020-12-09 06:26

In ember\'s official guide, it provides two ways to set the controller\'s underlying object. First is setting the model property:

App.SongsRoute = Ember.Rout         


        
2条回答
  •  既然无缘
    2020-12-09 06:35

    In the documentation - http://emberjs.com/api/classes/Ember.Controller.html#property_model - it clearly states that when retrieving or modifying a controller's model, the model property should be used instead of the content property.

提交回复
热议问题