diff --git a/ionic/components/app/test/barkpark/index.js b/ionic/components/app/test/barkpark/index.js
index dc08c60cc8..98265c36df 100644
--- a/ionic/components/app/test/barkpark/index.js
+++ b/ionic/components/app/test/barkpark/index.js
@@ -1,4 +1,3 @@
-//import {Router} from 'ionic/routing/router'
import {For, Parent} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
@@ -7,15 +6,13 @@ import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/fo
import {Log} from 'ionic/util'
import {
- Router, Routable, List, Item, HeaderTemplate, Nav, NavController,
- Toolbar, Input, Tabs,
- Tab, Content, Aside
+ Router, Routable, IonicView, NavController
} from 'ionic/ionic'
+
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/login.html',
- directives: [FormDirectives, Input, Content, HeaderTemplate, Toolbar]
+@IonicView({
+ templateUrl: 'pages/login.html'
})
class LoginPage {
constructor( nav: NavController ) {
@@ -36,8 +33,6 @@ class LoginPage {
Log.log('Doing login')
event.preventDefault();
console.log(this.loginForm.value);
-
- //this.viewport.push(SecondPage)
}
doSignup(event) {
@@ -51,9 +46,8 @@ new Routable(LoginPage, {
})
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/signup.html',
- directives: [FormDirectives, Input]
+@IonicView({
+ templateUrl: 'pages/signup.html'
})
export class SignupPage {
constructor( nav: NavController ) { //, fb: FormBuilder ) {
@@ -80,16 +74,14 @@ export class SignupPage {
console.log(this.signupForm.value);
this.nav.push(AppPage)
- //this.viewport.push(SecondPage)
}
}
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/app.html',
- directives: [FormDirectives, Input, Tabs, Tab]
+@IonicView({
+ templateUrl: 'pages/app.html'
})
export class AppPage {
constructor( nav: NavController ) { //, fb: FormBuilder ) {
@@ -99,9 +91,8 @@ export class AppPage {
}
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/tabs/home.html',
- directives: [For, Content, List, Item]
+@IonicView({
+ templateUrl: 'pages/tabs/home.html'
})
class StreamTab {
constructor(nav: NavController) {
@@ -122,9 +113,8 @@ class StreamTab {
}
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/post/detail.html',
- directives: [Content]
+@IonicView({
+ templateUrl: 'pages/post/detail.html'
})
class PostDetail {
constructor(nav: NavController) {
@@ -137,9 +127,8 @@ class PostDetail {
}
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/splash.html',
- directives: [Content]
+@IonicView({
+ templateUrl: 'pages/splash.html'
})
class SplashPage {
constructor(nav: NavController) {
@@ -151,7 +140,20 @@ class SplashPage {
}
}
-export function main(ionicBootstrap) {
- ionicBootstrap(SplashPage);
+
+@Component({
+ selector: 'ion-app'
+})
+@IonicView({
+ template: '
'
+})
+class IonicApp {
+ constructor() {
+ this.rootView = SplashPage;
+ }
+}
+
+export function main(ionicBootstrap) {
+ ionicBootstrap(IonicApp);
}
diff --git a/ionic/components/app/test/hn/index.js b/ionic/components/app/test/hn/index.js
index e74dfe5633..efe2a3f5f7 100644
--- a/ionic/components/app/test/hn/index.js
+++ b/ionic/components/app/test/hn/index.js
@@ -1,20 +1,15 @@
-import {NgFor} from 'angular2/angular2';
-import {Ancestor} from 'angular2/src/core/annotations_impl/visibility';
-import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
-import {View} from 'angular2/src/core/annotations_impl/view';
+import {Component} from 'angular2/src/core/annotations_impl/annotations';
-import {NavController, NavbarTemplate, Navbar, Content, List, Item} from 'ionic/ionic';
+import {NavController, IonicView} from 'ionic/ionic';
import {HackerNews} from './hn';
import {HNSinglePost} from './pages/single';
-console.log('Angular directives', NgFor, Content, List, Item);
-
@Component({
selector: 'story'
})
-@View({
+@IonicView({
template: '
'
})
export class Story {
@@ -26,9 +21,8 @@ export class Story {
@Component({
selector: 'ion-view'
})
-@View({
- templateUrl: './pages/top.html',
- directives: [NavbarTemplate, Navbar, Content, NgFor, List, Story, Item]
+@IonicView({
+ templateUrl: './pages/top.html'
})
class HNTopStories {
constructor(
@@ -92,6 +86,19 @@ class HNTopStories {
*/
}
-export function main(ionicBootstrap) {
- ionicBootstrap(HNTopStories);
+
+@Component({
+ selector: 'ion-app'
+})
+@IonicView({
+ template: '
'
+})
+class IonicApp {
+ constructor() {
+ this.rootView = HNTopStories;
+ }
+}
+
+export function main(ionicBootstrap) {
+ ionicBootstrap(IonicApp);
}
diff --git a/ionic/components/app/test/music/index.js b/ionic/components/app/test/music/index.js
index 21e9e517a4..f037a40794 100644
--- a/ionic/components/app/test/music/index.js
+++ b/ionic/components/app/test/music/index.js
@@ -1,4 +1,3 @@
-//import {Router} from 'ionic/routing/router'
import {ElementRef, For, Parent} from 'angular2/angular2'
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
import {View} from 'angular2/src/core/annotations_impl/view';
@@ -7,16 +6,14 @@ import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/fo
import {Log} from 'ionic/util'
import {
- Router, Routable, List, Item, HeaderTemplate, Nav, NavController,
- Toolbar, Input, Tabs,
- Tab, Content, Aside
+ Router, Routable, NavController,
+ IonicView
} from 'ionic/ionic'
@Component({selector: 'ion-view'})
-@View({
- templateUrl: 'pages/app.html',
- directives: [Nav, List, Item, Content, HeaderTemplate, Toolbar]
+@IonicView({
+ templateUrl: 'pages/app.html'
})
class AppPage {
constructor(nav: NavController) {
@@ -30,14 +27,14 @@ class AppPage {
/**
* Main app entry point
*/
-@Component({ selector: 'ion-view' })
-@View({
- directives: [Nav, Aside, List, Item, ParallaxEffect],
+@Component({ selector: 'ion-app' })
+@IonicView({
+ directives: [ParallaxEffect],
templateUrl: 'main.html'
})
class IonicApp {
constructor() {
- this.firstPage = AppPage
+ this.rootView = AppPage
this.menuOpenAmount = 0;
diff --git a/ionic/components/app/test/music/main.html b/ionic/components/app/test/music/main.html
index 49a0c23e9c..0634169020 100644
--- a/ionic/components/app/test/music/main.html
+++ b/ionic/components/app/test/music/main.html
@@ -23,8 +23,7 @@
-
-
+