Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <header data-ng-include src="'template/header.html'"></header>
- <section>
- <aside data-ng-include src="'template/leftside.html'"></aside>
- <aside data-ng-include src="'template/rightside.html'"></aside>
- <section class="page-view" data-ui-view></section>
- </section>
- <footer data-ng-include src="'template/footer.html'"></footer>
- .state ('p', {
- url: '/p', templateUrl: 'views/common.html'
- })
- .state ('p.p1', {
- url: '/p1', templateUrl: 'views/p1.html', controller: 'aController'
- })
- .state ('p.p2', {
- url: '/p2', templateUrl: 'views/p2.html', controller: 'aController'
- })
- .controller('aController', function($scope, aService) {
- // API endpoint calls
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement