-
-
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
Dynamically-added angle bracket components aren't recognized #11649
Comments
Ya. This isn't something we support, I also suspect we won't as t would require all of the htmlbars compiler client side and would likely be pretty slow. If you wish to add components dynamically. The component helper may be your best bet. You may also want to look at the context component rfc |
@stefanpenner Okay makes sense, thanks for the response. I'll take a look at the context component RFC! Also, pre-glimmer, I was able to do something like this successfully:
Post-Glimmer, this still works on initialization. However, when Thanks again! |
Just so you know, running the compiler in production really isn't something I would at all recommend. In-fact I would strongly advise against it. I am unclear if this particular approach is ever something we intended to support.
that being said, i suspect this line is the issue, are your trying to call rerender on the template or on the component? |
The intention is to call |
In 1.13 it is not possible to change layout after initial render. There is at least one issue open about this... |
Got it, thanks, I'll follow those issues |
#11315 is a failing test for rerendering after updating layout. |
Closing in favor of the failing test case PR mentioned above. |
http://emberjs.jsbin.com/zahucoyara/edit?html,css,js,output
I have a component that builds a property that's a string with some angle-bracket components inside of it. The string is printed unescaped in the component's template. I would expect Handlebars to recognize the angle-bracket components, however they are treated as normal HTML tags. I'm not sure if this is a bug, if I'm doing something wrong, or if this functionality just isn't supported yet. I've attached a JSBin showing a potential use-case and the issue.
The text was updated successfully, but these errors were encountered: