diff --git a/demos/item/index.ts b/demos/item/index.ts new file mode 100644 index 0000000000..173b94f218 --- /dev/null +++ b/demos/item/index.ts @@ -0,0 +1,11 @@ +import {App} from 'ionic/ionic'; + +// Uses the list's demo but passes the demo var to change the title +@App({ + templateUrl: '../list/main.html' +}) +class ApiDemoApp { + constructor() { + this.demo = "Item"; + } +} diff --git a/demos/list/index.ts b/demos/list/index.ts index 405e893db7..c55ea39f9b 100644 --- a/demos/list/index.ts +++ b/demos/list/index.ts @@ -3,4 +3,8 @@ import {App} from 'ionic/ionic'; @App({ templateUrl: 'main.html' }) -class ApiDemoApp {} +class ApiDemoApp { + constructor() { + this.demo = "List"; + } +} diff --git a/demos/list/main.html b/demos/list/main.html index bc8002d8bf..3aafe47a96 100644 --- a/demos/list/main.html +++ b/demos/list/main.html @@ -1,5 +1,5 @@ - List + {{demo}} diff --git a/ionic/components/item/item.ts b/ionic/components/item/item.ts index 9bb46d9b01..d06cf252ce 100644 --- a/ionic/components/item/item.ts +++ b/ionic/components/item/item.ts @@ -35,6 +35,7 @@ import {Label} from '../label/label'; * * * ``` + * @demo /docs/v2/demos/item/ * @see {@link /docs/v2/components#lists List Component Docs} * @see {@link ../../list/List List API Docs} */ @@ -157,4 +158,3 @@ export class Item { }); } } -