Is it possible to use ng-include without web server?

后端 未结 5 1455
伪装坚强ぢ
伪装坚强ぢ 2020-12-01 04:10

I\'m running an AngularJS app which merely include a file

That works when run un

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 04:43

    One workaround is to inline your templates:

    
    

    Fiddle.

    This puts your template into Angular's template cache. When an ng-include directive is processed, Angular checks the cache first.

提交回复
热议问题