mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-02-04 13:16:08 +08:00
docs(app): add description and usage
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user