Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. app.config(['$ocLazyLoadProvider', '$stateProvider', '$urlRouterProvider',
  2. function ($ocLazyLoadProvider, $stateProvider, $urlRouterProvider) {
  3. $urlRouterProvider.otherwise('/index');
  4.  
  5. // Index page
  6. $stateProvider.state('index', {
  7. url: '/',
  8. })
  9.  
  10. // Explore page
  11. $stateProvider.state('explore', {
  12. url: '/explore',
  13. views: {
  14. "": {
  15. controller: 'placesExplorerController', // This view will use AppCtrl loaded below in the resolve
  16. templateUrl: 'app/views/explore/placesresults.html'
  17. }
  18. },
  19. resolve: {
  20. load: function ($ocLazyLoad) {
  21. return $ocLazyLoad.load({
  22. name: 'Explore',
  23. files: [
  24. 'app/controllers/placesExplorerController.js',
  25. 'app/services/placesExplorerService.js',
  26. 'app/filters/placeNameCategoryFilter.js',
  27. ]
  28. });
  29. }
  30. }
  31. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement