without tree

This commit is contained in:
Thomas Atkins 2020-02-08 13:09:04 -06:00
parent 2488871e25
commit c6c515567c
2 changed files with 13 additions and 2 deletions

View File

@ -13,7 +13,7 @@
Navigate Navigate
</ion-list-header> </ion-list-header>
<tree-root [nodes]="nodes" [options]="options"></tree-root> <!-- <tree-root [nodes]="nodes" [options]="options"></tree-root> -->
</ion-list> </ion-list>
</ion-content> </ion-content>
<ion-footer> <ion-footer>
@ -22,7 +22,7 @@
<ion-label> <ion-label>
Dark mode Dark mode
</ion-label> </ion-label>
<ion-toggle id="themeToggle" slot="end"></ion-toggle> <ion-toggle (ionChange)="toggleDark()" id="themeToggle" slot="end"></ion-toggle>
</ion-item> </ion-item>
</ion-footer> </ion-footer>
</ion-menu> </ion-menu>

View File

@ -31,6 +31,7 @@ export class AppComponent {
public nodes = []; public nodes = [];
public darkMode = false;
constructor( constructor(
private platform: Platform, private platform: Platform,
private splashScreen: SplashScreen, private splashScreen: SplashScreen,
@ -52,4 +53,14 @@ export class AppComponent {
this.splashScreen.hide(); this.splashScreen.hide();
}); });
} }
toggleDark() {
this.darkMode = !this.darkMode;
console.log("toggel Dark mode");
if (this.darkMode) {
console.log("Dark Mode On");
} else {
console.log("Dark Mode Off");
}
}
} }