Advertisement
Guest User

Untitled

a guest
May 24th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. .state('home', {
  2. url: '/',
  3. views: {
  4. '' : {
  5. templateUrl: '/layouts/main.html',
  6. controller: ['$rootScope', function($rootScope) {
  7. $rootScope.css.background = "#ebeced";
  8. }]
  9. },
  10. 'nav@home': { templateUrl: '/templates/nav.html' },
  11. 'menu@home': { templateUrl: '/home/menu.html'},
  12. 'main@home': { templateUrl: '/templates/feed.html' },
  13. 'footer@home': { templateUrl: '/home/footer.html' }
  14. }
  15. })
  16.  
  17. <div ng-controller="baseCtrl">
  18. <div ui-view="nav"></div>
  19.  
  20. <div class="wrapper">
  21.  
  22. <div id="menu">
  23. <div ui-view="menu"></div>
  24. </div>
  25.  
  26. <div ui-view="main"></div>
  27.  
  28. <div id="footer">
  29. <div ui-view="footer"></div>
  30. </div>
  31.  
  32. </div>
  33. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement