Created
June 10, 2017 19:48
-
-
Save anghelalexandra/5ff21868bd3734d070f33885e89ba31f to your computer and use it in GitHub Desktop.
wp-pwa-sample-categories-module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('appticles.categories', [ | |
'ui.router', | |
'appticles.api', | |
'appticles.configuration' | |
]) | |
.config(['$stateProvider', '$urlRouterProvider', ($stateProvider, $urlRouterProvider) => { | |
$stateProvider | |
.state('categories', { | |
url: '/categories', | |
controller: 'CategoriesController as categoriesVm', | |
templateUrl: 'app/categories/categories.template.html' | |
}); | |
$urlRouterProvider.otherwise('/categories'); | |
}]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment