Skip to content

Commit

Permalink
Step 23.31: Implement ng2 component inside ui-router template
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela authored and DAB0mB committed Dec 14, 2016
1 parent 42bb34a commit 87a865f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion imports/ui/components/partyDetails/partyDetails.ts
Expand Up @@ -87,7 +87,12 @@ function config($stateProvider) {

$stateProvider.state('partyDetails', {
url: '/parties/:partyId',
template: '<party-details></party-details>',
template: '<party-details [party-id]="partyDetailsRoute.partyId"></party-details>',
controllerAs: 'partyDetailsRoute',
controller: function($stateParams, $scope) {
'ngInject';
this.partyId = $stateParams.partyId;
},
resolve: {
currentUser($q) {
if (Meteor.userId() === null) {
Expand Down

0 comments on commit 87a865f

Please sign in to comment.