Emberjs, Disable singleton for a specific view
When I add multiple instance of the same type of views in an containerView
there are in fact the same instance. How I can make them distinct
instances ?
I've created a little jsbin to illustrate the situation. The title of the
three 'windows' should be "First window", "Default title" and "Third
window" but all have the "Third window" title.
I've tried to register my view with singleton option to false but without
any success.
App.register('view:window', App.Window, { singleton: false })
http://jsbin.com/oHEweXO/10/edit?html,js,output
No comments:
Post a Comment