我正在使用帶引導程序的angularJS。bootstrap在不同的頁面中重用html標籤代碼
我有以下的ResetAndRegisterCommon.html HTML代碼
<div class="error"
ng-show="resetRegisterForm.Email.$invalid&& resetRegisterForm.Email.$dirty">
<span ng-show="resetRegisterForm.Email.$error">
<div class="alert alert-warning">
Warning! Please enter valid email address
</div>
</span>
</div>
我想重用上面的代碼中Mypage1.html和Mypage2.html
我試圖在Mypage1.html下面的代碼和Mypage2.html,但是html標記在Mypage1.html和Mypage2.html中完全不呈現。
<link rel="import" href="ResetAndRegisterCommon.html">
你必須使用JS來訪問內容導入的文件。 – 2015-02-09 03:32:46