Skip to content

Commit

Permalink
Step 19.17: Add auth logic to the App component
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 27, 2016
1 parent 01b0d97 commit 4560da8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/imports/app/app.component.ts
Expand Up @@ -2,10 +2,20 @@ import { Component } from '@angular/core';

import template from './app.component.html';
import style from './app.component.scss';
import {InjectUser} from "angular2-meteor-accounts-ui";

@Component({
selector: 'app',
template,
styles: [ style ]
})
export class AppComponent {}
@InjectUser('user')
export class AppComponent {
constructor() {

}

logout() {
Meteor.logout();
}
}

0 comments on commit 4560da8

Please sign in to comment.