Using Inline Templates in AngularJS

前端 未结 2 745
情歌与酒
情歌与酒 2020-11-29 20:47

I wanted to load an inline view template.

I wrapped the template in a script tag of type text/ng-template and set the id to temp1.html. and

2条回答
  •  青春惊慌失措
    2020-11-29 21:19

    Try use the id-Attribute of the script-Element to set the name of the template should work.

    
    

提交回复
热议问题