How to reuse template HTML block in Angular?

后端 未结 5 959
野趣味
野趣味 2020-12-23 09:28

Lets suppose we have html block in file:

Text

How can I reuse this html code below in the same file, I m

5条回答
  •  轮回少年
    2020-12-23 09:47

    I think you wanted to reuse the same html block again. If i understand you correctly, below code should help

    
            {{ mycontent }}
    
    

    To reuse above block in the same template,

      //reuse any number of times
    

提交回复
热议问题