-
- Active Menu: {{ (activeMenu == 'menu1') ? 'Menu 1' : 'Menu 2' }}
-
- This page has two menus with different id's, but only one is active at a time.
-
-
-
-
-
-
-
-
diff --git a/demos/infinite-scroll/index.ts b/demos/infinite-scroll/index.ts
index 5793d6f73e..d553b26572 100644
--- a/demos/infinite-scroll/index.ts
+++ b/demos/infinite-scroll/index.ts
@@ -1,5 +1,6 @@
-import {App, InfiniteScroll} from 'ionic-angular';
-import {Injectable} from '@angular/core';
+import {Component, Injectable} from '@angular/core';
+import {ionicBootstrap, InfiniteScroll} from 'ionic-angular';
+
/**
* Mock Data Access Object
@@ -62,7 +63,7 @@ export class MockProvider {
}
-@App({
+@Component({
templateUrl: 'main.html',
providers: [MockProvider]
})
@@ -88,3 +89,5 @@ class ApiDemoApp {
}
}
+
+ionicBootstrap(ApiDemoApp);
diff --git a/demos/input/index.ts b/demos/input/index.ts
index 64f6d23af8..c40e1274f7 100644
--- a/demos/input/index.ts
+++ b/demos/input/index.ts
@@ -1,6 +1,10 @@
-import {App} from 'ionic-angular';
+import {Component} from '@angular/core';
+import {ionicBootstrap} from 'ionic-angular';
-@App({
+
+@Component({
templateUrl: 'main.html'
})
class ApiDemoApp {}
+
+ionicBootstrap(ApiDemoApp);
diff --git a/demos/item-sliding/index.ts b/demos/item-sliding/index.ts
index 64f6d23af8..c40e1274f7 100644
--- a/demos/item-sliding/index.ts
+++ b/demos/item-sliding/index.ts
@@ -1,6 +1,10 @@
-import {App} from 'ionic-angular';
+import {Component} from '@angular/core';
+import {ionicBootstrap} from 'ionic-angular';
-@App({
+
+@Component({
templateUrl: 'main.html'
})
class ApiDemoApp {}
+
+ionicBootstrap(ApiDemoApp);
diff --git a/demos/item/index.ts b/demos/item/index.ts
index 52107b493a..31c6dce506 100644
--- a/demos/item/index.ts
+++ b/demos/item/index.ts
@@ -1,11 +1,12 @@
-import {App} from 'ionic-angular';
+import {Component} from '@angular/core';
+import {ionicBootstrap} from 'ionic-angular';
// Uses the list's demo but passes the demo var to change the title
-@App({
+@Component({
templateUrl: '../list/main.html'
})
class ApiDemoApp {
- constructor() {
- this.demo = "Item";
- }
+ demo = "Item";
}
+
+ionicBootstrap(ApiDemoApp);
diff --git a/demos/label/index.ts b/demos/label/index.ts
index 64f6d23af8..c40e1274f7 100644
--- a/demos/label/index.ts
+++ b/demos/label/index.ts
@@ -1,6 +1,10 @@
-import {App} from 'ionic-angular';
+import {Component} from '@angular/core';
+import {ionicBootstrap} from 'ionic-angular';
-@App({
+
+@Component({
templateUrl: 'main.html'
})
class ApiDemoApp {}
+
+ionicBootstrap(ApiDemoApp);
diff --git a/demos/list/index.ts b/demos/list/index.ts
index abf0467f77..9355d9a5d3 100644
--- a/demos/list/index.ts
+++ b/demos/list/index.ts
@@ -1,10 +1,12 @@
-import {App} from 'ionic-angular';
+import {Component} from '@angular/core';
+import {ionicBootstrap} from 'ionic-angular';
-@App({
+
+@Component({
templateUrl: 'main.html'
})
class ApiDemoApp {
- constructor() {
- this.demo = "List";
- }
+ demo = "List";
}
+
+ionicBootstrap(ApiDemoApp);
diff --git a/demos/loading/index.ts b/demos/loading/index.ts
index 98d2599435..ad71e8d5c4 100644
--- a/demos/loading/index.ts
+++ b/demos/loading/index.ts
@@ -1,10 +1,11 @@
-import {App, Page, ActionSheet, Loading, NavController, ViewController, Platform} from 'ionic-angular';
+import {Component, ViewEncapsulation} from '@angular/core';
+import {ionicBootstrap, Loading, NavController, Platform} from 'ionic-angular';
-@Page({
+@Component({
templateUrl: 'main.html'
})
-class E2EPage {
+class Page1 {
constructor(private nav: NavController, private platform: Platform) {}
presentLoadingIos() {
@@ -107,7 +108,7 @@ class E2EPage {
}
}
-@Page({
+@Component({
template: `