aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/app.component.ts22
-rw-r--r--src/app/app.html1
-rw-r--r--src/app/app.module.ts40
-rw-r--r--src/app/app.scss16
-rw-r--r--src/app/main.ts5
5 files changed, 84 insertions, 0 deletions
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
new file mode 100644
index 0000000..a28e8d2
--- /dev/null
+++ b/src/app/app.component.ts
@@ -0,0 +1,22 @@
+import { Component } from '@angular/core';
+import { Platform } from 'ionic-angular';
+import { StatusBar } from '@ionic-native/status-bar';
+import { SplashScreen } from '@ionic-native/splash-screen';
+
+import { TabsPage } from '../pages/tabs/tabs';
+
+@Component({
+ templateUrl: 'app.html'
+})
+export class MyApp {
+ rootPage:any = TabsPage;
+
+ constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
+ platform.ready().then(() => {
+ // Okay, so the platform is ready and our plugins are available.
+ // Here you can do any higher level native things you might need.
+ statusBar.styleDefault();
+ splashScreen.hide();
+ });
+ }
+}
diff --git a/src/app/app.html b/src/app/app.html
new file mode 100644
index 0000000..7b88c96
--- /dev/null
+++ b/src/app/app.html
@@ -0,0 +1 @@
+<ion-nav [root]="rootPage"></ion-nav>
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
new file mode 100644
index 0000000..e2c9d8d
--- /dev/null
+++ b/src/app/app.module.ts
@@ -0,0 +1,40 @@
+import { NgModule, ErrorHandler } from '@angular/core';
+import { BrowserModule } from '@angular/platform-browser';
+import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
+import { MyApp } from './app.component';
+
+import { AboutPage } from '../pages/about/about';
+import { ContactPage } from '../pages/contact/contact';
+import { HomePage } from '../pages/home/home';
+import { TabsPage } from '../pages/tabs/tabs';
+
+import { StatusBar } from '@ionic-native/status-bar';
+import { SplashScreen } from '@ionic-native/splash-screen';
+
+@NgModule({
+ declarations: [
+ MyApp,
+ AboutPage,
+ ContactPage,
+ HomePage,
+ TabsPage
+ ],
+ imports: [
+ BrowserModule,
+ IonicModule.forRoot(MyApp)
+ ],
+ bootstrap: [IonicApp],
+ entryComponents: [
+ MyApp,
+ AboutPage,
+ ContactPage,
+ HomePage,
+ TabsPage
+ ],
+ providers: [
+ StatusBar,
+ SplashScreen,
+ {provide: ErrorHandler, useClass: IonicErrorHandler}
+ ]
+})
+export class AppModule {}
diff --git a/src/app/app.scss b/src/app/app.scss
new file mode 100644
index 0000000..1392a6e
--- /dev/null
+++ b/src/app/app.scss
@@ -0,0 +1,16 @@
+// http://ionicframework.com/docs/theming/
+
+
+// App Global Sass
+// --------------------------------------------------
+// Put style rules here that you want to apply globally. These
+// styles are for the entire app and not just one component.
+// Additionally, this file can be also used as an entry point
+// to import other Sass files to be included in the output CSS.
+//
+// Shared Sass variables, which can be used to adjust Ionic's
+// default Sass variables, belong in "theme/variables.scss".
+//
+// To declare rules for a specific mode, create a child rule
+// for the .md, .ios, or .wp mode classes. The mode class is
+// automatically applied to the <body> element in the app.
diff --git a/src/app/main.ts b/src/app/main.ts
new file mode 100644
index 0000000..6af7a5b
--- /dev/null
+++ b/src/app/main.ts
@@ -0,0 +1,5 @@
+import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
+
+import { AppModule } from './app.module';
+
+platformBrowserDynamic().bootstrapModule(AppModule);