鍍金池/ 問答/HTML5/ angular 1.x怎么引入模塊(對(duì)應(yīng)html頁(yè)面)?

angular 1.x怎么引入模塊(對(duì)應(yīng)html頁(yè)面)?

開發(fā)中遇到了這樣的問題

clipboard.png

clipboard.png

我想引入那里的模塊引入不了,求大佬幫我一把,謝謝

git地址:

https://github.com/yyccQQu/test
回答
編輯回答
不討囍

ng1 html里引入html模板 使用ng-include指令。
比如:

<div class="index-content">
     <ng-include src="'views/indexContent.html'"></ng-include>
</div>

注意src里雙引號(hào)里還有單引號(hào)。

2017年8月22日 22:19