without tree

Brokenbuttons
Thomas Atkins 4 years ago
parent 2488871e25
commit c6c515567c

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

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

Loading…
Cancel
Save