AngularJS routing without a web server

后端 未结 5 2098
借酒劲吻你
借酒劲吻你 2020-12-03 08:21

I want to develop html5 SPA application for a thin client. There is no way to launch any web server on it. And I can\'t to make routing works without web server.

My

5条回答
  •  北海茫月
    2020-12-03 09:17

    You need to put your templates in index.html itself using script tags so that angular will no longer need to make AJAX requests to fetch them.

    
    

提交回复
热议问题