有沒有辦法將角度「活動DOM」轉換爲扁平化的純HTML? 我的意思是把這個:如何從角度指令和幫助註釋清理html?
<!-- ngRepeat: ref in refs track by $index -->
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">a0120</p>
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">a0241</p>
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">z1242</p>
<p ng_repeat="ref in refs track by $index" class="ng-scope ng-binding">a0120</p>
到這一點:
<p>a0120</p>
<p>a0241</p>
<p>z1242</p>
<p>a0120</p>
當然,類和將保持屬性沒有關係的角度編譯過程。
感謝
感謝
請問您是否可以詳細說明「live DOM」的含義?一旦角度編譯DOM(在任何東西變成功能之前必須做的),你最終會得到一個基本上正常的JavaScript網頁。這是你問的嗎? – Andyrooger