Angularjs slow to load templates

后端 未结 1 1226
谎友^
谎友^ 2021-01-23 13:53

I have some which doesn\'t really do much, still it does really take the longest time to load. I have written the code down for you all to see:

app.js

相关标签:
1条回答
  • 2021-01-23 14:40

    This delay is the time angular library gets to parse your HTML. You can use ng-bind instead:

    <div id="item" 
         ng-controller="ItemController as item"
         ng-bind="item.simple">
    </div>
    

    This way, your page won't get polluted while angular loads its content.

    0 讨论(0)
提交回复
热议问题