docs(ionicDirectives): add docs for IONIC_DIRECTIVES

This commit is contained in:
Mike Hartington
2016-04-19 14:18:40 -04:00
parent 8d8cc4c097
commit 902fbd0f62

View File

@ -44,20 +44,54 @@ import {ShowWhen, HideWhen} from '../components/show-hide-when/show-hide-when';
/** /**
* @name IONIC_DIRECTIVES * @name IONIC_DIRECTIVES
* @private
* @description * @description
* The core Ionic directives as well as Angular's CORE_DIRECTIVES and * The core Ionic directives as well as Angular's `CORE_DIRECTIVES` and `FORM_DIRECTIVES` are
* FORM_DIRECTIVES. Automatically available in every [@Page](../Page/) template. * avaialbe automatically when you bootstrap your app with the `@App` decorator. This means
* if you are using custom components you no longer need to import `IONIC_DIRECTIVES` as they
* are part of the `@App`s default directives.
* *
* **Angular** * If you would like to **not** have them included by default, you would need to bootstrap
* the app differently.
*
* Instead of starting your app like so:
*
* ```typescript
* @App({
* template: "<ion-nav></ion-nav>"
* })
*
* export class MyApp{
*
* }
* ```
*
* We would use Angulars default way of bootstrap an app, import `IONIC_DIRECTIVES` and `ionicProviders`, then
* declare `ionicProviders` as a dependencey.
*
* ```typescript
* import {IONIC_DIRECTIVES, ionicProviders} from 'ionic-angular';
* import {bootstrap} from 'angular2/platform/browser';
*
* @Component({
* //default selector, and theme.
* directives: [IONIC_DIRECTIVES]
* })
* class App {}
*
* bootstrap(App,ionicProviders())
* ```
*
*
*
* #### Angular
* - CORE_DIRECTIVES * - CORE_DIRECTIVES
* - FORM_DIRECTIVES * - FORM_DIRECTIVES
* *
* **Content** * #### Ionic
* - Menu * - Menu
* - MenuToggle * - MenuToggle
* - MenuClose * - MenuClose
* * - Badge
* - Button * - Button
* - Blur * - Blur
* - Content * - Content
@ -66,35 +100,27 @@ import {ShowWhen, HideWhen} from '../components/show-hide-when/show-hide-when';
* - InfiniteScrollContent * - InfiniteScrollContent
* - Refresher * - Refresher
* - RefresherContent * - RefresherContent
* * - Img
* **Lists**
* - List * - List
* - ListHeader * - ListHeader
* - Item * - Item
* - ItemSliding * - ItemSliding
* - VirtualScroll * - VirtualScroll
* - VirtualFor * - VirtualItem
* * - VirtualHeader
* **Slides** * - VirtualFooter
* - Slides * - Slides
* - Slide * - Slide
* - SlideLazy * - SlideLazy
*
* **Tabs**
* - Tabs * - Tabs
* - Tab * - Tab
*
* **Toolbar**
* - Toolbar * - Toolbar
* - ToolbarTitle * - ToolbarTitle
* - ToolbarItem * - ToolbarItem
*
* **Media**
* - Icon * - Icon
* - Spinner * - Spinner
*
* **Forms**
* - Searchbar * - Searchbar
* - SearchbarInput
* - Segment * - Segment
* - SegmentButton * - SegmentButton
* - Checkbox * - Checkbox
@ -103,10 +129,9 @@ import {ShowWhen, HideWhen} from '../components/show-hide-when/show-hide-when';
* - Select * - Select
* - Option * - Option
* - Toggle * - Toggle
* - TextArea
* - TextInput * - TextInput
* - Label * - Label
*
* **Nav**
* - Nav * - Nav
* - NavbarTemplate * - NavbarTemplate
* - Navbar * - Navbar
@ -114,7 +139,6 @@ import {ShowWhen, HideWhen} from '../components/show-hide-when/show-hide-when';
* - NavPop * - NavPop
* - NavRouter * - NavRouter
* - IdRef * - IdRef
*
* - ShowWhen * - ShowWhen
* - HideWhen * - HideWhen
*/ */