logo work
This commit is contained in:
@@ -5,5 +5,5 @@
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
|
||||
<ion-button shape="round" fill="outline" (click)="onClickLogout()">Log out</ion-button>
|
||||
</ion-content>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { Router } from '@angular/router';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
@@ -7,9 +8,13 @@ import { Component, OnInit } from '@angular/core';
|
||||
})
|
||||
export class SettingsPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
constructor(
|
||||
private router:Router
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
onClickLogout(){
|
||||
this.router.navigateByUrl('start');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user