without tree

Brokenbuttons
Thomas Atkins 4 years ago
parent 2488871e25
commit c6c515567c

@ -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>

@ -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");
}
}
}

Loading…
Cancel
Save