logo work

This commit is contained in:
Your Name
2020-03-16 10:18:58 -04:00
parent a1d5e5528b
commit 23e709717b
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -5,5 +5,5 @@
</ion-header>
<ion-content>
<ion-button shape="round" fill="outline" (click)="onClickLogout()">Log out</ion-button>
</ion-content>
+7 -2
View File
@@ -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');
}
}