Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

support for routing #11

Open
zwolej opened this issue Feb 15, 2017 · 1 comment
Open

support for routing #11

zwolej opened this issue Feb 15, 2017 · 1 comment

Comments

@zwolej
Copy link

zwolej commented Feb 15, 2017

I want to include some dynamic html from my controller to page. I dont have any nested components but it would be nice that expressions and routings work fine. So I added to imports in app module.

DynamicHTMLModule.forRoot({
components: []
})

Is there any way to allow work such expressions:

{{some_variable}}
or
<a [routerLink]="['/Contact']"> < / a>

as argument to:

<dynamic-html [content]="content_from_above">

@taji
Copy link

taji commented Mar 4, 2017

I have no connection to this project, but looking at the README and the code, I believe you want to use the DynamicComponentModule (and the dynamic-component selector) rather than the DynamicHTMLModule (and dynamic-html selector). Look at the demo folder to see how these two components differ.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants