I는 다음과 같은 몇 가지 jsons 데이터가 각 NG-템플릿에 렌더링되지는 HTML 코드 내부의 렌더링 doesnot NG는-포함 그것은 비어 있습니다. 및 다른 문제는 ng-include를 인쇄 할 때 재귀 수준을 인쇄하는 것이고 인쇄를 유지하지 않는다는 것입니다.HTML 내가 함께 재귀를 인쇄하려고 할 때, NG-포함 (아래 그림 참조) NG 템플릿
무엇이 잘못 되었나요?
JSON 데이터 :
[{"name":"default","path":">var>www>rapa-v2>themes>","subdir":[{"name":"css","path":">var>www>rapa-v2>themes>>default","subdir":[{"name":"images","path":">var>www>rapa-v2>themes>>default>css","subdir":[]},{"name":"style.css","path":">var>www>rapa-v2>themes>>default>css"}]},{"name":"index.blade.php","path":">var>www>rapa-v2>themes>>default"},{"name":"information.json","path":">var>www>rapa-v2>themes>>default"},{"name":"screen.jpg","path":">var>www>rapa-v2>themes>>default"}]}]
HTML 코드 :
<div class="theme-files-list ltr" ng-init="loadDir('{{ $theme }}')">
<script type="text/ng-template" id="directoryTree">
<div class="tree-item">
<i class="fa fa-file-text-o maroon"></i>
<a href="<% '/admin/setting/template/edit/{{ $theme }}/'+item.name %>">
<% item.name %>
</a>
</div>
<ul ng-if="item.subdir">
<li ng-repeat="item in item.subdir" ng-include="'directoryTree'"></li>
</ul>
</script>
<ul class="noselect">
<li>
<div class="tree-item bg-aqua">
<i class="fa fa-paint-brush blue"></i>
{{ ucfirst($theme) }}
</div>
<ul>
<li ng-repeat="item in themeDir" ng-include="'directoryTree'"></li>
</ul>
</li>
</ul>
</div>
중요한 : 나는 laravel 및 블레이드 시스템 인쇄용을 사용하여, 나는 대체 한 각 인쇄 기호 {{}}와 < %>
당신이'Laravel을 사용할 수 있습니다에게 JSON을 변경하거나 변경해야 @ {{}}'변경해야하지 않는 각도'{{}}' 구문 – PaladiN