From 4487457e9c9f4024b887e37f904bb4f6f1d78d45 Mon Sep 17 00:00:00 2001 From: Patrick Sun Date: Sun, 8 Nov 2020 03:35:26 +1100 Subject: [PATCH] login logout worked --- src/app/app.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 607d8e8..efc78de 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -36,6 +36,10 @@ export class AppComponent implements OnInit , OnDestroy { this.loanEdit.somedata = "" + Math.random() + "changed"; this.loanEdit.open('dialog'); } + + if (item.text == "Logout"){ + this.login = false; + } } }