docs(app): add description and usage

This commit is contained in:
Drew Rygh
2015-09-08 15:27:40 -05:00
parent ccae94013c
commit 158657a2ec

View File

@@ -12,7 +12,24 @@ import {Popup} from '../popup/popup';
import {FocusHolder} from '../form/focus-holder';
/**
* TODO
* @name IonicApp
* @description
* The base Ionic class that your app inherits from. By inheriting from this class, you will have access to the Ionic API.
*
* @usage
* ```js
* @App({
* templateUrl: '/app/app.html',
* })
* class MyApp {
*
* constructor(app: IonicApp) {
* this.app = app;
* }
* }
* ```
* Note: Ionic sets `ion-app` as the selector for the app. Setting a custom selector will override this and cause CSS problems.
*
*/
export class IonicApp {