bundle demos with CJS

This commit is contained in:
Tim Lancina
2015-10-09 22:45:46 -05:00
parent 5f283cc045
commit aa816a9072
11 changed files with 100 additions and 35 deletions

View File

@ -1,4 +1,4 @@
import {ActionSheetPage} from 'actionSheet/actionSheet';
import {ActionSheetPage} from './actionSheet/actionSheet';
import {ButtonsPage,
BlockButtonsPage,
@ -9,18 +9,18 @@ import {ButtonsPage,
FabPage,
ButtonSizesPage,
IconButtonsPage,
ButtonsInComponentsPage} from 'buttons/buttons';
ButtonsInComponentsPage} from './buttons/buttons';
import {CardsPage} from 'cards/cards';
import {FormsPage} from 'forms/forms';
import {IconsPage} from 'icons/icons';
import {ListsPage} from 'lists/lists';
import {MenusPage} from 'menus/menus';
import {ModalsPage} from 'modals/modals';
import {NavigationPage} from 'navigation/navigation';
import {PopupsPage} from 'popups/popups';
import {SlidesPage} from 'slides/slides';
import {TabsPage} from 'tabs/tabs';
import {CardsPage} from './cards/cards';
import {FormsPage} from './forms/forms';
import {IconsPage} from './icons/icons';
import {ListsPage} from './lists/lists';
import {MenusPage} from './menus/menus';
import {ModalsPage} from './modals/modals';
import {NavigationPage} from './navigation/navigation';
import {PopupsPage} from './popups/popups';
import {SlidesPage} from './slides/slides';
import {TabsPage} from './tabs/tabs';
export function toTitleCase(str) {
@ -52,5 +52,3 @@ export function getPageFor(hash) {
'tabs': TabsPage
}[hash]
}

View File

@ -1,7 +1,7 @@
import {App, IonicApp, IonicPlatform, ActionSheet} from 'ionic/ionic';
import {Page, IonicConfig, Events} from 'ionic/ionic';
import {ActionSheetPage} from 'actionSheet/actionSheet';
import * as helpers from 'helpers';
import {ActionSheetPage} from './actionSheet/actionSheet';
import * as helpers from './helpers';
@App({

View File

@ -1,6 +1,6 @@
import {App, IonicApp, Page, NavController, NavParams} from 'ionic/ionic';
import {Page, Events} from 'ionic/ionic';
import * as helpers from 'helpers';
import * as helpers from './helpers';
@Page({
templateUrl: 'menus/menu-home.html'
@ -54,5 +54,3 @@ export class MenusPage {
this.nav.setRoot(page.component);
}
}

View File

@ -1,5 +1,5 @@
import {App, IonicApp, Animation, Modal, NavController, Page, Events} from 'ionic/ionic';
import * as helpers from 'helpers';
import * as helpers from './helpers';
@Page({

View File

@ -1,6 +1,6 @@
import {NavController, NavParams} from 'ionic/ionic';
import {Page, Events} from 'ionic/ionic';
import * as helpers from 'helpers';
import * as helpers from './helpers';
@Page({
templateUrl: 'navigation/navigation-details.html'
@ -30,7 +30,7 @@ class NavigationDetailsPage {
templateUrl: 'navigation/navigation.html',
})
export class NavigationPage {
constructor(nav: NavController) {
this.nav = nav;
}
@ -39,4 +39,4 @@ export class NavigationPage {
this.nav.push(NavigationDetailsPage, { name: item });
}
}
}

View File

@ -1,6 +1,6 @@
import {NavController, NavParams} from 'ionic/ionic';
import {Page, ViewController} from 'ionic/ionic';
import * as helpers from 'helpers';
import * as helpers from './helpers';
@Page({
template: 'Hello 1',
@ -19,4 +19,4 @@ export class TabsPage {
constructor(nav: NavController, params: NavParams) {
this.nav = nav;
}
}
}