refactor(demos): make each actionSheet section a module

This commit is contained in:
Drew Rygh
2015-11-04 16:23:05 -06:00
parent 3003c73890
commit 19ce43a182
4 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1 @@
export * from './basic/pages';

View File

@ -1,13 +1,13 @@
import {Platform, Page, ActionSheet} from 'ionic/ionic';
import {forwardRef} from 'angular2/angular2';
import {AndroidAttribute} from '../helpers';
import {AndroidAttribute} from '../../helpers';
@Page({
templateUrl: 'actionSheet/actionSheet.html',
templateUrl: 'action-sheets/basic/basic.html',
directives: [forwardRef(() => AndroidAttribute)]
})
export class ActionSheetPage {
export class BasicPage {
constructor(actionSheet: ActionSheet, platform: Platform) {
this.actionSheet = actionSheet;

View File

@ -2,8 +2,7 @@ import {Directive, ElementRef, Renderer} from 'angular2/angular2';
import {Platform, Navbar} from 'ionic/ionic';
import {ActionSheetPage} from './actionSheet/actionSheet';
import * as actionSheets from './action-sheets/action-sheets';
import * as buttons from './buttons/buttons';
import * as cards from './cards/cards';
@ -95,7 +94,7 @@ export function hasScrollbar() {
export function getPageFor(hash) {
return {
'action-sheets': ActionSheetPage,
'action-sheets': actionSheets.BasicPage,
'buttons': buttons.BasicPage,
'block-buttons': buttons.BlockPage,