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

View File

@ -31,6 +31,7 @@ export class AppComponent {
public nodes = [];
public darkMode = false;
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
@ -52,4 +53,14 @@ export class AppComponent {
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");
}
}
}