-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create Views dynamically #2597
Comments
I have looked inside your view tests and you are defining the container when creating the view. It is the preferred scenario right now? |
@Myslik in most situations you should be using see https://github.com/emberjs/ember.js/blob/master/packages/ember-views/lib/views/view.js#L2058 for more details. That being said, we should be giving helpful deprecation warnings rather then this rather opaque error. |
Thank you, I have missed that method. |
@stefanpenner, I don't understand how to arrange this code in order to use
For now I have the error thrown in |
@dogawaf on master, there should be not error just a deprecation warning. @dogawaf I tried to replicate your issue @ http://jsbin.com/ucanam/21/ but was unable to. Can you continue from the jsbin, and demonstrate the issue? Just ping back on this thread once you have it... I will help you sort this out. |
I have updated the jsbin. I've got the deprecation warning, and the assertion failure. http://jsbin.com/ucanam/22/ |
Yes it did. Thanks a lot. |
it appears that the outstanding issues for this ticket have been resolved. |
Maybe I am missing something, but probably since 626a4e7#L1R922 I am no longer able to create views dynamically with
templateName
specified.This snippet fails saying it cannot find the template specified. It is the smallest piece of code that should reproduce the error. I have found out that in function
templateForName
is container undefined in this case.I need to dynamically create views in my custom
ContainerView
.The text was updated successfully, but these errors were encountered: