ng-include内容替换为ng-include dom

时间:2016-04-01 16:04:24

标签: javascript jquery html angularjs

我对角度很新,需要一些帮助这个问题..

顶header.html中

<div class="row">
<some default html contents goes here>
  <breadcrumbs-extras>

  </breadcrumbs-extras>
</div>

page.html中

<div class="page-header" data-ng-include="'tpl/top-header.html'">
<div class="col s12 m6 l6 right-align ">
    <a href="#/in" class="btn blue lighten-1 white-text z-depth-0">
      <i class="fa fa-upload"></i> Upload
    </a>
    <a href="#/inv" class="btn green lighten-1 white-text z-depth-0">
      <i class="fa fa-cart-arrow-down"></i> Reorder
    </a>
  </div>
</div>

我需要将page-header div的内容复制到breadcrumbs-extras指令

我怎样才能实现这一目标......

0 个答案:

没有答案