<ion-view cache-view="true">
  <ion-nav-title>
    <h1 class="title">所有联系人</h1>
  </ion-nav-title>
  <ion-nav-buttons side="left">
    <button class="button icon-left ion-ios-arrow-back button-clear sino-back-button" sino-nav-direction="back" sino-go-back-button>返回</button>
  </ion-nav-buttons>
  <ion-nav-buttons side="right">
    <span style="font-size:30px" class="ion-ios-reload" ng-show="!allUsersCtrl.refreshing" stop-event ng-click="allUsersCtrl.refresh()"></span>
    <ion-spinner icon="android" ng-show="allUsersCtrl.refreshing" stop-event ng-click="allUsersCtrl.refresh()" class="alluser-refresh"></ion-spinner>
  </ion-nav-buttons>

  <sino-linker-tree
    dept="allUsersCtrl.dept"
    loading-state="allUsersCtrl.loadingState"
    top-dept-id="allUsersCtrl.topDeptId"
    detail-fn="allUsersCtrl.getDetail(node)"
    refresh-fn="allUsersCtrl.fetchUserAndDept()">
  </sino-linker-tree>
</ion-view>
