Hi
I want to add some ionic code inside my HTML page
How can i achieve it.
For ex.
I want below code should come in my HTML page
//code
import Component } from ‘@angular/core’;
I don’t know where is your problem , it seems like you know how to use it !
if you have a variable and you want to use it in your view file (html file) all you need to do is putting the variable’s name between two brackets like this : {{variable}}
or in your case : {{name}}
I think this is a very bad idea and you should try to think of another way to achieve your ultimate goal. ngc really wants static templates in order to build properly, and any attempt to subvert that is going to cause you more trouble than it’s worth, IMHO.
I gave you what I use. If you can’t adapt it, you have to describe what you are really trying to achieve, at as high a level as possible, because if you keep saying “I want to embed Ionic directives in HTML injected from the controller”, my answer is going to keep being “no, you don’t”.