diff --git a/demos/blur/index.ts b/demos/blur/index.ts index 00bd916c6b..405e893db7 100644 --- a/demos/blur/index.ts +++ b/demos/blur/index.ts @@ -3,8 +3,4 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) - -class DemoApp { - blur() { - } -} +class ApiDemoApp {} diff --git a/demos/buttons/index.ts b/demos/button/index.ts similarity index 78% rename from demos/buttons/index.ts rename to demos/button/index.ts index 35861ee71b..405e893db7 100644 --- a/demos/buttons/index.ts +++ b/demos/button/index.ts @@ -3,5 +3,4 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) - -class DemoApp {} \ No newline at end of file +class ApiDemoApp {} diff --git a/demos/button/main.html b/demos/button/main.html new file mode 100644 index 0000000000..2ce4c2493e --- /dev/null +++ b/demos/button/main.html @@ -0,0 +1,64 @@ + + + Button + + + + +

Colors

+ + + + + + + + + + + +

Shapes

+ + + + + + + + + +

Outlines

+ + + + + + + + + +

Icons

+ + + + + + + +

Sizes

+ + + + + + + +
diff --git a/demos/buttons/main.html b/demos/buttons/main.html deleted file mode 100644 index b37d851bf9..0000000000 --- a/demos/buttons/main.html +++ /dev/null @@ -1,103 +0,0 @@ - - - Buttons - - - - -

Colors

- -

- -

- -

- -

- -

- -

- -

- -

- -

- -

- -

Shapes

- -

- -

- -

- -

- -

- -

- -

- -

- -

Outlines

- -

- -

- -

- -

- -

- -

- -

- -

- -

Icons

- -

- -

- -

- -

- -

- -

- - -

Sizes

- -

- -

- -

- -

- -

- -

- -
diff --git a/demos/checkbox/app.html b/demos/checkbox/app.html deleted file mode 100644 index 5f6bb33d68..0000000000 --- a/demos/checkbox/app.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/demos/checkbox/index.ts b/demos/checkbox/index.ts index a1884eb2c1..405e893db7 100644 --- a/demos/checkbox/index.ts +++ b/demos/checkbox/index.ts @@ -1,20 +1,6 @@ -import {App, Page, IonicApp} from 'ionic/ionic'; +import {App} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } -} - +class ApiDemoApp {} diff --git a/demos/config/index.html b/demos/config/index.html index e8dda7ea3d..49f6db8d67 100644 --- a/demos/config/index.html +++ b/demos/config/index.html @@ -20,19 +20,6 @@ - diff --git a/demos/hide-when/app.html b/demos/hide-when/app.html deleted file mode 100644 index 776be9a94a..0000000000 --- a/demos/hide-when/app.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/demos/hide-when/index.ts b/demos/hide-when/index.ts index a1884eb2c1..405e893db7 100644 --- a/demos/hide-when/index.ts +++ b/demos/hide-when/index.ts @@ -1,20 +1,6 @@ -import {App, Page, IonicApp} from 'ionic/ionic'; +import {App} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } -} - +class ApiDemoApp {} diff --git a/demos/label/app.html b/demos/label/app.html deleted file mode 100644 index 776be9a94a..0000000000 --- a/demos/label/app.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/demos/label/index.ts b/demos/label/index.ts index a1884eb2c1..405e893db7 100644 --- a/demos/label/index.ts +++ b/demos/label/index.ts @@ -1,20 +1,6 @@ -import {App, Page, IonicApp} from 'ionic/ionic'; +import {App} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } -} - +class ApiDemoApp {} diff --git a/demos/list/index.ts b/demos/list/index.ts index 8c0c9c23c6..405e893db7 100644 --- a/demos/list/index.ts +++ b/demos/list/index.ts @@ -1,9 +1,6 @@ import {App} from 'ionic/ionic'; - @App({ templateUrl: 'main.html' }) -class ApiDemoApp { - constructor() { } -} +class ApiDemoApp {} diff --git a/demos/local-storage/app.html b/demos/local-storage/app.html deleted file mode 100644 index 5f6bb33d68..0000000000 --- a/demos/local-storage/app.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/demos/local-storage/index.ts b/demos/local-storage/index.ts index 958291f4dd..4d590f0443 100644 --- a/demos/local-storage/index.ts +++ b/demos/local-storage/index.ts @@ -3,19 +3,9 @@ import {Storage, LocalStorage} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { +class ApiDemoApp { constructor() { this.local = new Storage(LocalStorage); this.myItem = {}; diff --git a/demos/menu/index.ts b/demos/menu/index.ts index ad5869d9c5..651633570d 100644 --- a/demos/menu/index.ts +++ b/demos/menu/index.ts @@ -8,12 +8,10 @@ class Page1 {} @Page({templateUrl: 'page2.html'}) class Page2 {} - @App({ templateUrl: 'main.html' }) -class E2EApp { - +class ApiDemoApp { constructor(app: IonicApp) { this.app = app; this.rootView = Page1; diff --git a/demos/platform/app.html b/demos/platform/app.html deleted file mode 100644 index 776be9a94a..0000000000 --- a/demos/platform/app.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/demos/platform/index.ts b/demos/platform/index.ts index 5a153ff36b..f4c2ad8d7b 100644 --- a/demos/platform/index.ts +++ b/demos/platform/index.ts @@ -1,23 +1,12 @@ -import {App, Page, IonicApp, Platform} from 'ionic/ionic'; +import {App, Platform} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { +class ApiDemoApp { constructor(platform: Platform) { this.isIos = platform.is('ios'); this.isAndroid = platform.is('android'); this.userAgent = platform.userAgent(); } } - diff --git a/demos/radio/index.ts b/demos/radio/index.ts index 00bd916c6b..405e893db7 100644 --- a/demos/radio/index.ts +++ b/demos/radio/index.ts @@ -3,8 +3,4 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) - -class DemoApp { - blur() { - } -} +class ApiDemoApp {} diff --git a/demos/refresher/app.html b/demos/refresher/app.html deleted file mode 100644 index 5f6bb33d68..0000000000 --- a/demos/refresher/app.html +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/demos/refresher/index.ts b/demos/refresher/index.ts index f10342ab15..cb42fb7ac4 100644 --- a/demos/refresher/index.ts +++ b/demos/refresher/index.ts @@ -1,22 +1,9 @@ import {App, Page, IonicApp} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } - +class ApiDemoApp { doRefresh(refresher) { console.log('DOREFRESH', refresher) @@ -33,4 +20,3 @@ export class InitialPage { console.log('DOPULLING', amt); } } - diff --git a/demos/scroll/index.ts b/demos/scroll/index.ts index 00bd916c6b..405e893db7 100644 --- a/demos/scroll/index.ts +++ b/demos/scroll/index.ts @@ -3,8 +3,4 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) - -class DemoApp { - blur() { - } -} +class ApiDemoApp {} diff --git a/demos/segment/index.ts b/demos/segment/index.ts index 1deaca95e2..7809912a68 100644 --- a/demos/segment/index.ts +++ b/demos/segment/index.ts @@ -3,8 +3,7 @@ import {App, Platform} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) - -class DemoApp { +class ApiDemoApp { constructor(platform: Platform) { this.platform = platform; this.pet = "puppies"; diff --git a/demos/show-when/index.ts b/demos/show-when/index.ts index a1884eb2c1..405e893db7 100644 --- a/demos/show-when/index.ts +++ b/demos/show-when/index.ts @@ -1,20 +1,6 @@ -import {App, Page, IonicApp} from 'ionic/ionic'; +import {App} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } -} - +class ApiDemoApp {} diff --git a/demos/slides/index.ts b/demos/slides/index.ts index 9cc3af9e62..aaef077d32 100644 --- a/demos/slides/index.ts +++ b/demos/slides/index.ts @@ -4,7 +4,7 @@ import {Http} from 'angular2/http'; @App({ templateUrl: 'main.html', }) -class MyApp { +class ApiDemoApp { constructor(private app: IonicApp, http: Http) { this.http = http; this.extraOptions = { diff --git a/demos/toggle/app.html b/demos/toggle/app.html deleted file mode 100644 index 776be9a94a..0000000000 --- a/demos/toggle/app.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/demos/toggle/index.ts b/demos/toggle/index.ts index a1884eb2c1..405e893db7 100644 --- a/demos/toggle/index.ts +++ b/demos/toggle/index.ts @@ -1,20 +1,6 @@ -import {App, Page, IonicApp} from 'ionic/ionic'; +import {App} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } -} - +class ApiDemoApp {} diff --git a/demos/toolbar/app.html b/demos/toolbar/app.html deleted file mode 100644 index 776be9a94a..0000000000 --- a/demos/toolbar/app.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/demos/toolbar/index.ts b/demos/toolbar/index.ts index a1884eb2c1..405e893db7 100644 --- a/demos/toolbar/index.ts +++ b/demos/toolbar/index.ts @@ -1,20 +1,6 @@ -import {App, Page, IonicApp} from 'ionic/ionic'; +import {App} from 'ionic/ionic'; @App({ - templateUrl: 'app.html' -}) -class ApiDemoApp { - - constructor() { - this.rootPage = InitialPage; - } -} - -@Page({ templateUrl: 'main.html' }) -export class InitialPage { - constructor() { - } -} - +class ApiDemoApp {} diff --git a/ionic/components/alert/alert.ts b/ionic/components/alert/alert.ts index 40e8708d07..51c187476f 100644 --- a/ionic/components/alert/alert.ts +++ b/ionic/components/alert/alert.ts @@ -114,6 +114,7 @@ import {ViewController} from '../nav/view-controller'; * } * ``` * + * @demo /docs/v2/demos/alert/ */ export class Alert extends ViewController { diff --git a/ionic/components/button/button.ts b/ionic/components/button/button.ts index 0d1d9d3f0f..794dc90933 100644 --- a/ionic/components/button/button.ts +++ b/ionic/components/button/button.ts @@ -24,7 +24,7 @@ import {Toolbar} from '../toolbar/toolbar'; * @property [color] - Dynamically set which color attribute this button should use. * @description * Buttons are simple components in Ionic, can consist of text, an icon, or both, and can be enhanced with a wide range of attributes. - * @demo /docs/v2/demos/buttons/ + * @demo /docs/v2/demos/button/ * @see {@link /docs/v2/components#buttons Button Component Docs} */