Skip to content

Instantly share code, notes, and snippets.

@anghelalexandra
Created June 10, 2017 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anghelalexandra/5ff21868bd3734d070f33885e89ba31f to your computer and use it in GitHub Desktop.
Save anghelalexandra/5ff21868bd3734d070f33885e89ba31f to your computer and use it in GitHub Desktop.
wp-pwa-sample-categories-module
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