attaching dynamic templates to a component
See original GitHub issueI’m submitting a feature request
Current behavior @Component{ selector:‘selector-name’, templateUrl:‘url to template file’ } Expected behavior We should be able to get the class metadata and should be able to update its templateUrl or any key of annotations.
What is the motivation / use case for changing the behavior? We should be able to dynamically pass the templateUrl and one component can be initialized using different templateUrl. this will help the developer to flexibly use the same component but using some other template.
Please tell us about your environment: Any
-
Angular version: 2.0.X Any
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
-
Language: [all | TypeScript X.X | ES6/7 | ES5]
-
Node (for AoT issues):
node --version
=
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:6 (3 by maintainers)
I think you may be looking for something like
NgTemplateOutlet
orNgComponentOutlet
?This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.