Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .state('home', {
- url: '/',
- views: {
- '' : {
- templateUrl: '/layouts/main.html',
- controller: ['$rootScope', function($rootScope) {
- $rootScope.css.background = "#ebeced";
- }]
- },
- 'nav@home': { templateUrl: '/templates/nav.html' },
- 'menu@home': { templateUrl: '/home/menu.html'},
- 'main@home': { templateUrl: '/templates/feed.html' },
- 'footer@home': { templateUrl: '/home/footer.html' }
- }
- })
- <div ng-controller="baseCtrl">
- <div ui-view="nav"></div>
- <div class="wrapper">
- <div id="menu">
- <div ui-view="menu"></div>
- </div>
- <div ui-view="main"></div>
- <div id="footer">
- <div ui-view="footer"></div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement