Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <header data-ng-include src="'template/header.html'"></header>
  2. <section>
  3. <aside data-ng-include src="'template/leftside.html'"></aside>
  4. <aside data-ng-include src="'template/rightside.html'"></aside>
  5. <section class="page-view" data-ui-view></section>
  6. </section>
  7. <footer data-ng-include src="'template/footer.html'"></footer>
  8.  
  9. .state ('p', {
  10. url: '/p', templateUrl: 'views/common.html'
  11. })
  12. .state ('p.p1', {
  13. url: '/p1', templateUrl: 'views/p1.html', controller: 'aController'
  14. })
  15. .state ('p.p2', {
  16. url: '/p2', templateUrl: 'views/p2.html', controller: 'aController'
  17. })
  18.  
  19. .controller('aController', function($scope, aService) {
  20. // API endpoint calls
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement