-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathapp.component.ts
More file actions
56 lines (51 loc) · 1.22 KB
/
app.component.ts
File metadata and controls
56 lines (51 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
public appPages = [
// {
// title: 'Home',
// url: '/home'
// },
{
title: 'Reactive Form',
url: '/reactive-form'
},
{
title: 'Template Driven Form',
url: '/template-driven-form'
},
{
title: 'DatePicker (using component)',
url: '/datepicker-component'
},
{
title: 'DatePicker (using directive)',
url: '/datepicker-directive'
},
{
title: 'DatePicker (using Button)',
url: '/datepicker-button'
}
];
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar
) {
this.initializeApp();
}
initializeApp() {
if (this.platform.is('cordova') && (this.platform.is('android') || this.platform.is('ios'))) {
this.platform.ready().then(() => {
this.statusBar.styleDefault();
this.splashScreen.hide();
});
}
}
}