2015-12-13 83 views

回答

0
<ion-view view-title="Admin-DashBoard"> 
<ion-nav-bar class="bar bar-header header-all"> 
    <ion-nav-buttons side="left"> 
    </ion-nav-buttons> 
</ion-nav-bar> 
<ion-content> 
     <div class="some css"> 
      <div class="some css" ng-include="newPage.url"> </div> 
     </div> 
    </div> 
</ion-content> 

$scope.ratingView = [{ 
      name: 'templates/zzz/zzzz-ratings.html', 
      url: 'templates/zzz/zzzz-ratings.html' 
     }]; 
     $scope.newPage = $scope.ratingView[0]; 

以上代碼顯示,您可以創建動態添加HTML頁面,如果你想從控制器端添加HTML只需用JavaScript創建控制器側模板。

0

看看ng-bind-html,你必須包含安全的html