ng-Include is very slow with the external template

前端 未结 2 1146
梦如初夏
梦如初夏 2021-01-17 01:28

I have used ng-include as shown below.But it is very slow.In other words it shows tab\'s heading without the content of it.Later it loads the content.Which is r

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-17 02:09

    I would recommend using the template cache generator like grunt-html2js

    But according angularjs documentation you can cache a template nesting the content as:

    
    

    And then normally include the template:

提交回复
热议问题