You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
frontend/src/app/app.component.ts

69 lines
1.3 KiB

4 years ago
import { Component } from "@angular/core";
4 years ago
4 years ago
import { Platform } from "@ionic/angular";
import { SplashScreen } from "@ionic-native/splash-screen/ngx";
import { StatusBar } from "@ionic-native/status-bar/ngx";
4 years ago
@Component({
4 years ago
selector: "app-root",
templateUrl: "app.component.html",
styleUrls: ["app.component.scss"]
4 years ago
})
export class AppComponent {
public appPages = [
{
4 years ago
title: "Home",
url: "/home",
icon: "home"
4 years ago
},
{
4 years ago
title: "List",
url: "/list",
icon: "list"
},
{
4 years ago
title: "Editor",
url: "/editor",
icon: "edit"
}
];
public nodes = [
{
id: 1,
name: "root1",
children: [
{ id: 2, name: "child1" },
{ id: 3, name: "child2" }
]
},
{
id: 4,
name: "root2",
children: [
{ id: 5, name: "child2.1" },
{
id: 6,
name: "child2.2",
children: [{ id: 7, name: "subsub" }]
}
]
4 years ago
}
];
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar
) {
this.initializeApp();
}
initializeApp() {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
});
}
}