Skip to content

Commit

Permalink
Step 5.5: Define parties route
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and Dotan Simha committed Nov 22, 2016
1 parent cd08602 commit b596464
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion imports/ui/components/partiesList/partiesList.js
@@ -1,5 +1,6 @@
import angular from 'angular';
import angularMeteor from 'angular-meteor';
import uiRouter from 'angular-ui-router';

import template from './partiesList.html';
import { Parties } from '../../../api/parties';
Expand All @@ -25,10 +26,21 @@ const name = 'partiesList';
// create a module
export default angular.module(name, [
angularMeteor,
uiRouter,
PartyAdd,
PartyRemove
]).component(name, {
template,
controllerAs: name,
controller: PartiesList
});
})
.config(config);

function config($stateProvider) {
'ngInject';
$stateProvider
.state('parties', {
url: '/parties',
template: '<parties-list></parties-list>'
});
}

0 comments on commit b596464

Please sign in to comment.