Ng-include nested page

1.1.  N G -include page nested

1.1.1.  Features

Click on the tab of the page to sign each page is not written in the same html it can be divided into n number of html and nested into it

1.1.2.  Code

(1)  separately in html and write in js

<ion-content id="content" style="bottom:60px;line-height:34px;margin-top: 50px;">
        <div ng-include="testData" style="height: 600px;"></div>
    </ion-content>
Js
$scope.testData = "templates/HomePage/Person/personDetail/personDetailInfoReadOnly.html";

(2)  is directly written in html (for writing directly remember Ng-include time inside, which have double quotes single quotes)

<div ng-include="'templates/HomePage/Person/personDetail/personDetailInfoReadOnly.html'" style="height: 600px;"></div>

 

Guess you like

Origin www.cnblogs.com/Amanda-w/p/11648010.html