Mistake in routing documentation?

I’m not sure if discuss.emberjs.com is the appropiate place right now to ask documentation questions. Being bold, I’ll ask my question anyway here.

http://emberjs.com/guides/routing/setting-up-a-controller/ currently states:

  • “The default setupController hook sets the model property of the associated controller to the route handler’s model.”

Shouldn’t it instead say:

  • “The default setupController hook sets the content property of the associated controller to the route handler’s model.”

They both work, model is an alias for content, you can set any of them, it doesn’t matter.

1 Like

model is the preferred property, though content still works for backwards-compatibility. You should expect content to be deprecated in a future release.

7 Likes