How to use templateRef?

后端 未结 2 1989
情深已故
情深已故 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:52

    ngForTemplate is only supported with ngFor