ng2-dynamic-content | Contains examples project for the article Dynamic Content
kandi X-RAY | ng2-dynamic-content Summary
kandi X-RAY | ng2-dynamic-content Summary
Contains examples project for the article Dynamic Content with Angualar 2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ng2-dynamic-content
ng2-dynamic-content Key Features
ng2-dynamic-content Examples and Code Snippets
Community Discussions
Trending Discussions on ng2-dynamic-content
QUESTION
I need to code a page that will have its template defined in the server. The page makes an HTTP GET to the server and get a string that will be the template.
I'm trying to follow an example I found here: runtime-content.component.ts
However, in this template I'm going to have references to other components, such as and when I try to render that I get that
'app-hello' is not a known element
.
How can I tell this component to use a certain module or recognize certain components?
...ANSWER
Answered 2020-Mar-25 at 16:25You just have to include the component references here (declarations
):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ng2-dynamic-content
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page