docs(api demos): update api demos

This commit is contained in:
mhartington
2016-02-24 11:18:36 -05:00
parent d945bdeed9
commit 1cdf10238f
36 changed files with 41 additions and 42 deletions

View File

@ -1,4 +1,4 @@
import {App, Page, ActionSheet, NavController, Platform} from 'ionic/ionic'; import {App, Page, ActionSheet, NavController, Platform} from 'ionic-angular';
@App({ @App({

View File

@ -1,4 +1,4 @@
import {App, Page, Alert, NavController} from 'ionic/ionic'; import {App, Page, Alert, NavController} from 'ionic-angular';
@App({ @App({

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App, Page, IonicApp, Platform, NavController} from 'ionic/ionic'; import {App, Page, IonicApp, Platform, NavController} from 'ionic-angular';
@App({ @App({
templateUrl: 'app.html', templateUrl: 'app.html',

View File

@ -1,4 +1,4 @@
import {App, IonicApp, Page, Events} from 'ionic/ionic'; import {App, IonicApp, Page, Events} from 'ionic-angular';
@Page({templateUrl: 'login.html'}) @Page({templateUrl: 'login.html'})
class Login { class Login {

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App, Page, MenuController} from 'ionic/ionic'; import {App, Page, MenuController} from 'ionic-angular';
@Page({templateUrl: 'page1.html'}) @Page({templateUrl: 'page1.html'})
class Page1 { class Page1 {

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
// Uses the list's demo but passes the demo var to change the title // Uses the list's demo but passes the demo var to change the title
@App({ @App({

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,5 +1,5 @@
import {App, Page, IonicApp, Config, Platform} from 'ionic/ionic'; import {App, Page, IonicApp, Config, Platform} from 'ionic-angular';
import {Storage, LocalStorage} from 'ionic/ionic'; import {Storage, LocalStorage} from 'ionic-angular';
@App({ @App({

View File

@ -1,4 +1,4 @@
import {App, Page, MenuController} from 'ionic/ionic'; import {App, Page, MenuController} from 'ionic-angular';
@Page({templateUrl: 'page1.html'}) @Page({templateUrl: 'page1.html'})
class Page1 { class Page1 {

View File

@ -1,5 +1,5 @@
import {App, Page, IonicApp, Config, Platform, ViewController} from 'ionic/ionic'; import {App, Page, IonicApp, Config, Platform, ViewController} from 'ionic-angular';
import {Modal, NavController, NavParams, Animation} from 'ionic/ionic'; import {Modal, NavController, NavParams, Animation} from 'ionic-angular';
@App({ @App({

View File

@ -1,5 +1,5 @@
import {App, Page, IonicApp, Config, Platform} from 'ionic/ionic'; import {App, Page, IonicApp, Config, Platform} from 'ionic-angular';
import {NavController, NavParams} from 'ionic/ionic'; import {NavController, NavParams} from 'ionic-angular';
@App({ @App({

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
// Use the toolbar demo but pass in the demo name to change the title // Use the toolbar demo but pass in the demo name to change the title
@App({ @App({

View File

@ -1,5 +1,5 @@
import {App, Page, IonicApp, Config, Platform} from 'ionic/ionic'; import {App, Page, IonicApp, Config, Platform} from 'ionic-angular';
import {NavController, NavParams} from 'ionic/ionic'; import {NavController, NavParams} from 'ionic-angular';
var PAGE_NUM = 2; var PAGE_NUM = 2;
@ -44,7 +44,7 @@ export class Page2 {
pop() { pop() {
if (PAGE_NUM > 2) { if (PAGE_NUM > 2) {
PAGE_NUM--; PAGE_NUM--;
} }
this.nav.pop(); this.nav.pop();
} }

View File

@ -1,4 +1,4 @@
import {App, Platform} from 'ionic/ionic'; import {App, Platform} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App, Page, IonicApp} from 'ionic/ionic'; import {App, Page, IonicApp} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App, Page} from 'ionic/ionic'; import {App, Page} from 'ionic-angular';
@Page({ @Page({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html', templateUrl: 'main.html',

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html', templateUrl: 'main.html',

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
// Use the toolbar demo but pass in the demo name to change the title // Use the toolbar demo but pass in the demo name to change the title
// this will also hide some of the toolbars that don't use `ion-title` // this will also hide some of the toolbars that don't use `ion-title`

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -1,4 +1,4 @@
import {App} from 'ionic/ionic'; import {App} from 'ionic-angular';
@App({ @App({
templateUrl: 'main.html' templateUrl: 'main.html'

View File

@ -31,9 +31,8 @@ module.exports = {
}, },
resolve: { resolve: {
alias: { alias: {
'ionic': path.normalize(process.cwd() + '/dist') 'ionic-angular': path.normalize(process.cwd() + '/dist')
}, },
extensions: ["", ".js", ".ts"] extensions: ["", ".js", ".ts"]
} }
}; };