Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.config(['$ocLazyLoadProvider', '$stateProvider', '$urlRouterProvider',
- function ($ocLazyLoadProvider, $stateProvider, $urlRouterProvider) {
- $urlRouterProvider.otherwise('/index');
- // Index page
- $stateProvider.state('index', {
- url: '/',
- })
- // Explore page
- $stateProvider.state('explore', {
- url: '/explore',
- views: {
- "": {
- controller: 'placesExplorerController', // This view will use AppCtrl loaded below in the resolve
- templateUrl: 'app/views/explore/placesresults.html'
- }
- },
- resolve: {
- load: function ($ocLazyLoad) {
- return $ocLazyLoad.load({
- name: 'Explore',
- files: [
- 'app/controllers/placesExplorerController.js',
- 'app/services/placesExplorerService.js',
- 'app/filters/placeNameCategoryFilter.js',
- ]
- });
- }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement