Created
February 10, 2017 01:17
-
-
Save avatsaev/d4924ac07ddc4458a5cff5a80bc34b30 to your computer and use it in GitHub Desktop.
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
import {Component, OnInit, ViewChild} from '@angular/core'; | |
import {AuthDialogComponent} from "../auth-dialog/auth-dialog.component"; | |
import {Angular2TokenService} from "angular2-token"; | |
@Component({ | |
selector: 'app-toolbar', | |
templateUrl: './toolbar.component.html', | |
styleUrls: ['./toolbar.component.sass'] | |
}) | |
export class ToolbarComponent implements OnInit { | |
@ViewChild('authDialog') authDialog: AuthDialogComponent; | |
constructor(public tokenAuthService:Angular2TokenService) { } | |
ngOnInit() { | |
} | |
presentAuthDialog(mode?: 'login'| 'register'){ | |
this.authDialog.openDialog(mode); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment