index.html
<html lang="en" ng-app="single_view"> <head> <script src="../jslib/angular.js"></script> <script src="../jslib/angular-route.js"></script> <script src="app.js"></script> </head> <body> <h4>below is the a page informaiton</h4> <div ng-include="'view/a.html'"></div> <h4>below is the b page informaiton</h4> <div ng-include="'view/b.html'"></div> </body> </html>
app.js
angular.module('single_view', []);
view/a.html
A page ...
view/b.html
B page ...
注:<div ng-include="'view/b.html'"></div> 要加单引号