How to use templateRef?

后端 未结 2 1981
情深已故
情深已故 2021-01-31 10:14

I am trying to find a way to dynamically construct a template in Angular2. I was thinking templateRef might provide a way to do this. But I could be wrong.

I found an ex

2条回答
  •  再見小時候
    2021-01-31 10:41

    Creating your own template directive it's not difficult, you have to understand two main things

    • TemplateRef contains what's inside your