diff --git a/demos/animations/index.ts b/demos/animations/index.ts
deleted file mode 100644
index 8f68b6208e..0000000000
--- a/demos/animations/index.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import {App, Animation} from 'ionic/ionic';
-
-@App({
- templateUrl: 'main.html'
-})
-class IonicApp {
-
- constructor() {
-
- this.animation = new Animation();
- this.animation
- .duration(2000)
-
- var ionitronSpin = new Animation(document.querySelector('#ionitron'));
- ionitronSpin
- .from('transform', 'rotate(0deg)')
- .to('transform', 'rotate(360deg)')
-
- this.animation.add(ionitronSpin);
-
- this.animation.onReady(animation => {
- console.log('onReady', animation);
- });
-
- this.animation.onPlay(animation => {
- console.log('onPlay', animation);
- });
-
- this.animation.onFinish(animation => {
- console.log('onFinish', animation);
- });
-
- }
-
- play() {
- this.animation.play();
- }
-
- pause() {
- this.animation.pause();
- }
-
- progress(ev) {
- this.animation.progress( parseFloat(ev.srcElement.value) );
- }
-
-}
diff --git a/demos/animations/main.html b/demos/animations/main.html
deleted file mode 100644
index c17d95a33c..0000000000
--- a/demos/animations/main.html
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- Animations
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demos/cards/index.html b/demos/cards/index.html
deleted file mode 100644
index a6cb807e57..0000000000
--- a/demos/cards/index.html
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/demos/cards/index.ts b/demos/cards/index.ts
deleted file mode 100644
index 461de97590..0000000000
--- a/demos/cards/index.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import {App} from 'ionic/ionic';
-
-
-@App({
- templateUrl: 'main.html'
-})
-
-class DemoApp {
- constructor() {
- }
-}
\ No newline at end of file
diff --git a/demos/cards/main.html b/demos/cards/main.html
deleted file mode 100644
index 2948898c3b..0000000000
--- a/demos/cards/main.html
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
- Cards
-
-
-
-
-
-
-
- Card Header
-
-
-
- Keep close to Nature's heart... and break clear away, once in awhile,
- and climb a mountain or spend a week in the woods. Wash your spirit clean.
-
-
-
-
-
-
-
-
-
- ion-iteam in a card, icon left, button right
-
-
-
-
- This is content, without any paragraph or header tags,
- within an ion-card-content element.
-
-
-
-
-
-
-
-
-
- Card Link Item 1
-
-
-
-
- Card Link Item 2
-
-
-
-
-
-
-
-
-
diff --git a/demos/i18n/index.ts b/demos/i18n/index.ts
deleted file mode 100644
index 7d348487c4..0000000000
--- a/demos/i18n/index.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import {Component} from 'angular2/core';
-import {Control, ControlGroup} from 'angular2/common';
-
-import {IonicApp, App} from 'ionic/ionic';
-import {Translate, TranslatePipe} from 'ionic/ionic';
-
-
-@App({
- templateUrl: 'main.html',
- pipes: [TranslatePipe]
-})
-class MyApp {
- constructor(app: IonicApp, trans: Translate) {
- this.app = app;
- this.trans = trans;
-
- this.trans.translations('de', {
- 'Location': 'lage'
- });
-
- console.log(this.trans.translate('Location'));
- console.log(this.trans.translate('Location', 'de'));
- //this.trans.setLanguage('de');
- console.log(this.trans.translate('Location'));
-
- }
-}
diff --git a/demos/i18n/main.html b/demos/i18n/main.html
deleted file mode 100644
index d73601f91c..0000000000
--- a/demos/i18n/main.html
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- Hello! What is your {{ 'Location' | translate }}
-
-
diff --git a/demos/icons/index.ts b/demos/icons/index.ts
deleted file mode 100644
index 5b166d7e4d..0000000000
--- a/demos/icons/index.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import {App} from 'ionic/ionic';
-
-
-@App({
- templateUrl: 'main.html'
-})
-
-class DemoApp {
- constructor() {
- this.homeIcon = 'home';
- this.isActive = false;
- }
-}
\ No newline at end of file
diff --git a/demos/icons/main.html b/demos/icons/main.html
deleted file mode 100644
index 83c9c76e40..0000000000
--- a/demos/icons/main.html
+++ /dev/null
@@ -1,74 +0,0 @@
-
-
- Icons
-
-
-
-
-
-
-
- Favorite Icons
-
-
-
-
- Wifi
-
-
-
-
- Affection
-
- Very Little
-
-
-
-
-
- Home
-
- Where the heart is
-
-
-
-
-
- Magic
-
-
-
-
- Star status
-
- Super
-
-
-
-
-
- Pizza
-
- Always
-
-
-
-
-
- Beer
-
- Yes Plz
-
-
-
-
-
- Wine
-
- All the time
-
-
-
-
-
-
diff --git a/demos/material/index.ts b/demos/material/index.ts
deleted file mode 100644
index 3dca139d88..0000000000
--- a/demos/material/index.ts
+++ /dev/null
@@ -1,104 +0,0 @@
-import {Component, Directive} from 'angular2/core';
-
-import {App, ActionSheet, IonicApp, IonicView, Register} from 'ionic/ionic';
-
-@IonicView({
- template: '' +
- 'Heading' +
- '' +
- '' +
- '' +
- '' +
- '' +
- '' +
- '' +
- `
-
-
-
- All Genres
- Jan 17 2015
-
-
- Alternative
-
-
- Blues
-
-
-
-
-
-
- New Post
-
-
- Keep close to Nature's heart... and break clear away, once in awhile, and climb a mountain or spend a week in the woods. Wash your spirit clean.
-
-
-
- Posted 5 days ago
-
-
-
-
- ` +
- ''
-})
-export class FirstPage {
- constructor(app: IonicApp, actionSheet: ActionSheet) {
- this.app = app;
- this.actionSheet = actionSheet;
- }
- showMoreMenu() {
- this.actionSheet.open({
- buttons: [
- { icon: 'ion-android-share-alt', text: 'Share' },
- { icon: 'ion-arrow-move', text: 'Move' }
- ],
- destructiveText: 'Delete',
- titleText: 'Modify your album',
- cancelText: 'Cancel',
- cancel: function() {
- console.log('Canceled');
- },
- destructiveButtonClicked: () => {
- console.log('Destructive clicked');
- },
- buttonClicked: function(index) {
- console.log('Button clicked', index);
- if(index == 1) { return false; }
- return true;
- }
- }).then(actionSheetRef => {
- this.actionSheetRef = actionSheetRef;
- });
-
- }
-}
-
-@App({
- template: `
-
- `,
- routes: [
- {
- path: '/first',
- component: FirstPage,
- root: true
- }
- ]
-})
-class MyApp {
- constructor() {
- }
-}
diff --git a/demos/native/index.ts b/demos/native/index.ts
deleted file mode 100644
index 22acec2325..0000000000
--- a/demos/native/index.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import {Component} from 'angular2/core';
-import {Control, ControlGroup} from 'angular2/common';
-
-import {IonicApp, App} from 'ionic/ionic';
-
-import {Camera, Geolocation, Vibration, Battery, Device, Events} from 'ionic/ionic';
-
-import {CameraPage} from 'pages/camera';
-import {BatteryPage} from 'pages/battery';
-import {ContactsPage} from 'pages/contacts';
-import {DevicePage} from 'pages/device';
-import {DeviceMotionPage} from 'pages/device-motion';
-import {DeviceOrientationPage} from 'pages/device-orientation';
-import {DialogsPage} from 'pages/dialogs';
-import {GeolocationPage} from 'pages/geolocation';
-import {StatusBarPage} from 'pages/statusbar';
-import {VibrationPage} from 'pages/vibration';
-
-@App({
- templateUrl: 'main.html'
-})
-class MyApp {
- constructor(app: IonicApp, events: Events) {
- this.app = app;
-
- console.log('Events', events);
-
- let handler = (user) => {
- console.log('User created', user);
- return {
- what: 'what'
- }
- }
- let handler2 = (user) => {
- console.log('2User created', user);
- return {
- things: 'yes'
- }
- }
-
- events.subscribe('user:created', handler);
- events.subscribe('user:created', handler2);
-
- setInterval(() => {
- var results = events.publish('user:created', {
- name: 'Max Lynch',
- id: 1
- })
- console.log('Got results', results);
- }, 2000);
-
- setTimeout(() => {
- events.unsubscribe('user:created');
- console.log(events.channels);
- }, 6000);
-
- this.firstPage = CameraPage;
-
- this.plugins = [
- {title: 'Camera', page: CameraPage},
- {title: 'Device', page: DevicePage},
- {title: 'Device Motion', page: DeviceMotionPage},
- {title: 'Device Orientation', page: DeviceOrientationPage},
- {title: 'Dialogs', page: DialogsPage},
- {title: 'Geolocation', page: GeolocationPage},
- {title: 'Contacts', page: ContactsPage},
- {title: 'Battery', page: BatteryPage},
- {title: 'StatusBar', page: StatusBarPage},
- {title: 'Vibration', page: VibrationPage},
- ]
- }
-
- openPage(menu, page) {
- menu.close();
-
- let nav = this.app.getComponent('myNav');
- nav.setRoot(page.page);
- }
-}
diff --git a/demos/native/main.html b/demos/native/main.html
deleted file mode 100644
index 8d080ea455..0000000000
--- a/demos/native/main.html
+++ /dev/null
@@ -1,12 +0,0 @@
-
- Plugins
-
-
-
-
-
-
-
-
diff --git a/demos/native/pages/battery.ts b/demos/native/pages/battery.ts
deleted file mode 100644
index 874cf7065e..0000000000
--- a/demos/native/pages/battery.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import {IonicView, Battery} from 'ionic/ionic';
-
-
-@IonicView({
- template: `
-
-
- Battery
-
-
- Battery
-
-
- Battery charging: {{battery.charging}}
- Battery level: {{battery.level * 100}}%
- Battery charging time: {{battery.chargingTime}}s
- Battery discharging time: {{battery.dischargingTime}}s
-
-
-
- `
-})
-export class BatteryPage {
- doBatteryStatus() {
- Battery.getStatus().then((battery) => {
- this.battery = battery;
- });
- }
-}
diff --git a/demos/native/pages/camera.ts b/demos/native/pages/camera.ts
deleted file mode 100644
index 46bbdff8aa..0000000000
--- a/demos/native/pages/camera.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import {IonicView} from 'ionic/ionic';
-
-import {Camera} from 'ionic/ionic';
-
-@IonicView({
- template: `
-
-
- Camera
-
-
- Camera
-
-
- `
-})
-export class CameraPage {
- constructor() {
-
- }
- getPicture() {
- Camera.getPicture({
-
- }).then(data => {
- console.log('Data', data);
- }, err => {
- alert('Unable to take picture')
- })
- }
-}
diff --git a/demos/native/pages/contacts.ts b/demos/native/pages/contacts.ts
deleted file mode 100644
index b70be02667..0000000000
--- a/demos/native/pages/contacts.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import {IonicView} from 'ionic/ionic';
-
-import {Contacts} from 'ionic/ionic';
-
-@IonicView({
- template: `
-
-
- Contacts
-
-
- Contacts
-
-
-
- `
-})
-export class ContactsPage {
-
-}
diff --git a/demos/native/pages/device-motion.ts b/demos/native/pages/device-motion.ts
deleted file mode 100644
index 2b51093288..0000000000
--- a/demos/native/pages/device-motion.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import {IonicView, DeviceMotion} from 'ionic/ionic';
-
-
-@IonicView({
- template: `
-
-
- Device Motion
-
-
- {{accel.x}} {{accel.y}} {{accel.z}}
-
- `
-})
-export class DeviceMotionPage {
- constructor() {
- DeviceMotion.watchAcceleration().source.subscribe((accel) => {
- this.accel = accel.acceleration;
- });
- }
-
-}
diff --git a/demos/native/pages/device-orientation.ts b/demos/native/pages/device-orientation.ts
deleted file mode 100644
index 3807083f92..0000000000
--- a/demos/native/pages/device-orientation.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import {IonicView, DeviceOrientation} from 'ionic/ionic';
-
-
-@IonicView({
- template: `
-
-
- Device Orientation
-
-
-
-

-
-
- `
-})
-export class DeviceOrientationPage {
-
- constructor() {
- this.imageStyle = {
- 'max-width': '100%'
- }
-
- DeviceOrientation.watchHeading().source.subscribe((heading) => {
- this.imageStyle['-webkit-transform'] = 'rotate(' + heading.magneticHeading + 'deg)';
- });
- }
-}
diff --git a/demos/native/pages/device.ts b/demos/native/pages/device.ts
deleted file mode 100644
index f08613e8d4..0000000000
--- a/demos/native/pages/device.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-import {IonicView, Device} from 'ionic/ionic';
-
-
-@IonicView({
- template: `
-
-
- Device
-
-
- Device
-
-
- Device name: {{device.name}}
-
-
- `
-})
-export class DevicePage {
-
- doDevice() {
- this.device = Device.getDevice();
- console.log('Got device', this.device);
- }
-}
diff --git a/demos/native/pages/dialogs.ts b/demos/native/pages/dialogs.ts
deleted file mode 100644
index fc3a51f9a1..0000000000
--- a/demos/native/pages/dialogs.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import {IonicView, Dialogs} from 'ionic/ionic';
-
-
-@IonicView({
- template: `
-
-
- Dialogs
-
-
- Dialogs
-
-
-
-
- `
-})
-export class DialogsPage {
- doAlert() {
- Dialogs.alert('Hello');
- }
- doConfirm() {
- Dialogs.confirm('Do you want to click that?').then((resp) => {
- console.log(resp);
- });
- }
- doPrompt() {
- Dialogs.prompt('What is your fav ice cream?').then((resp) => {
- console.log(resp);
- });
- }
-}
diff --git a/demos/native/pages/geolocation.ts b/demos/native/pages/geolocation.ts
deleted file mode 100644
index 5fd2475bda..0000000000
--- a/demos/native/pages/geolocation.ts
+++ /dev/null
@@ -1,52 +0,0 @@
-import {IonicView} from 'ionic/ionic';
-
-import {Geolocation} from 'ionic/ionic';
-
-@IonicView({
- template: `
-
-
- Geolocation
-
-
- Geolocation
-
-
- Fetching location...
- {{location.coords.latitude}}, {{location.coords.longitude}}
-
-
-
- Fetching location...
- {{trackLocation.coords.latitude}}, {{trackLocation.coords.longitude}}
-
-
- `
-})
-export class GeolocationPage {
- doGetLocation() {
- console.log('Getting location');
- this.gettingLocation = true;
- Geolocation.getCurrentPosition().then((pos) => {
- this.gettingLocation = false;
- console.log('Got location', pos);
- this.location = pos;
- }, (err) => {
- this.gettingLocation = false;
- console.error('Unable to get location', err);
- });
- }
- doTrackLocation() {
- this.gettingTrackLocation = true;
- Geolocation.watchPosition().source.subscribe((pos) => {
- this.gettingTrackLocation = false;
- console.log('Got location', pos);
- this.trackLocation = pos;
- }, (err) => {
- this.gettingTrackLocation = false;
- console.error('Unable to get location', pos);
- });
- }
-}
diff --git a/demos/native/pages/statusbar.ts b/demos/native/pages/statusbar.ts
deleted file mode 100644
index d9b328c27d..0000000000
--- a/demos/native/pages/statusbar.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import {IonicView} from 'ionic/ionic';
-
-import {StatusBar} from 'ionic/ionic';
-
-@IonicView({
- template: `
-
-
- StatusBar
-
-
- StatusBar
-
-
-
-
-
-
-
-
- `
-})
-export class StatusBarPage {
- constructor() {
- this.styles = [
- StatusBar.DEFAULT,
- StatusBar.LIGHT_CONTENT,
- StatusBar.BLACK_TRANSLUCENT,
- StatusBar.BLACK_OPAQUE
- ];
- this.currentStyle = 0;
-
- this.colorHex = '#fff';
- }
- hide() { StatusBar.hide(); }
- show() { StatusBar.show(); }
- toggleOverlays() {
- this.doesOverlay = !!!this.doesOverlay;
- StatusBar.setOverlays(this.doesOverlay);
- }
- setStyle() {
- StatusBar.setStyle(this.styles[++this.currentStyle]);
- }
- setColor() {
- console.log('Setting color', this.colorHex);
- StatusBar.setHexColor(this.colorHex);
- }
-}
diff --git a/demos/native/pages/vibration.ts b/demos/native/pages/vibration.ts
deleted file mode 100644
index ddf7f19c13..0000000000
--- a/demos/native/pages/vibration.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import {IonicView} from 'ionic/ionic';
-
-import {Vibration} from 'ionic/ionic';
-
-@IonicView({
- template: `
-
-
- Vibration
-
-
- Vibration
-
-
- `
-})
-export class VibrationPage {
- doVibrate() {
- Vibration.vibrate(1000);
- }
-}
diff --git a/demos/navigation/index.ts b/demos/navigation/index.ts
deleted file mode 100644
index 3a2075a7c7..0000000000
--- a/demos/navigation/index.ts
+++ /dev/null
@@ -1,121 +0,0 @@
-import {App, NavController} from 'ionic/ionic';
-import {IonicView, Config, IonicApp} from 'ionic/ionic';
-import {NavParams, NavController} from 'ionic/ionic';
-
-
-@IonicView({
- template: '' +
- '' +
- '{{title}}' +
- '' +
- '' +
- '{{title}}
' +
- '' +
- '' +
- '' +
- ''
-})
-class FirstPage {
- constructor(
- nav: NavController,
- app: IonicApp,
- config: Config
- ) {
- this.nav = nav;
- this.title = 'First Page';
- this.pushPage = SecondPage;
- this.pushData = {
- id: 420
- }
- }
-
- setPages() {
- let items = [
- ThirdPage
- ];
- this.nav.setPages(items);
- }
-
- push() {
- this.nav.push(SecondPage, { id: 8675309, myData: [1,2,3,4] } );
- }
-}
-
-
-@IonicView({
- template: `
-
- {{title}}
-
-
- Second page
-
-
-
-
-
- `
-})
-class SecondPage {
- constructor(
- nav: NavController,
- params: NavParams
- ) {
- this.nav = nav;
- this.params = params;
- console.log('Second page params:', params);
- }
-
- setPages() {
- let items = [
- FirstPage,
- ThirdPage
- ];
- this.nav.setPages(items);
- }
-
- pop() {
- this.nav.pop();
- }
-
- push() {
- this.nav.push(ThirdPage);
- }
-
-}
-
-
-@IonicView({
- template: `
-
- Third Page Header
-
-
-
-
-
-
- `
-})
-class ThirdPage {
- constructor(
- nav: NavController
- ) {
- this.nav = nav
- }
-
- pop() {
- this.nav.pop()
- }
-
-}
-
-
-@App({
- template: ''
-})
-class DemoApp {
- constructor() {
- this.root = FirstPage;
- }
-}
diff --git a/demos/popup/app.html b/demos/popup/app.html
deleted file mode 100644
index 5f6bb33d68..0000000000
--- a/demos/popup/app.html
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
\ No newline at end of file
diff --git a/demos/popup/index.ts b/demos/popup/index.ts
deleted file mode 100644
index 594001c883..0000000000
--- a/demos/popup/index.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import {App, Page, IonicApp, Config, Platform} from 'ionic/ionic';
-import {Popup} from 'ionic/ionic';
-
-@App({
- templateUrl: 'app.html'
-})
-class ApiDemoApp {
-
- constructor() {
- this.rootPage = InitialPage;
- }
-}
-
-@Page({
- templateUrl: 'main.html'
-})
-export class InitialPage {
- constructor(popup: Popup) {
- this.popup = popup;
- this.confirmOpen = false;
- this.confirmResult = '';
- }
-
- doAlert() {
- this.popup.alert({
- title: "New Friend!",
- template: "Your friend, Obi wan Kenobi, just accepted your friend request!",
- cssClass: 'my-alert'
- });
- }
-
- doPrompt() {
- this.popup.prompt({
- title: "New Album",
- template: "Enter a name for this new album you're so keen on adding",
- inputPlaceholder: "Title",
- okText: "Save"
- });
- }
-
- doConfirm() {
- this.confirmOpen = true;
- this.popup.confirm({
- title: "Use this lightsaber?",
- subTitle: "You can't exchange lightsabers",
- template: "Do you agree to use this lightsaber to do good across the intergalactic galaxy?",
- cancelText: "Disagree",
- okText: "Agree"
- });
- }
-
-}
-