Now I created a new user in UsersCreateController, but how could I update the whole users model? How could I get the model in the UsersController? I didn’t use Ember Data, just simple localStorage. Thank you so much!
Do nothing. This one’s my favorite. As of Ember 1.5.0, child routes automatically inherit their parent’s model. So your UsersCreateController should already have the parent model as its own model.
The same technique as above, only explicitly declare that you’re inheriting the model:
Thank you so much! Your answer helped me a lot. By the way, I heard that using usersBinding: ‘controller.users.model’ this way to get the model in the father controller. How about this way? Can I get all the controller’s properties through ‘controllers.XXX.prop’ ? If so, it’s really flexible.