mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-26 08:13:34 +08:00
docs()
This commit is contained in:
@ -5,14 +5,28 @@ import {ionicProviders} from '../bootstrap';
|
||||
import {IONIC_DIRECTIVES} from '../directives';
|
||||
|
||||
/**
|
||||
* @ngdoc service
|
||||
* @name App
|
||||
* @module ionic
|
||||
* @param {object} [config] - the app's [../Config](Config) object
|
||||
* @param {string} [template] - the template to use for the app root
|
||||
* @param {string} [templateUrl] - a relative URL pointing to the template to use for the app root
|
||||
* @description
|
||||
* App is an Ionic decorator that bootstraps an application. It can be passed a number of arguments, that act as global config variables for the app.
|
||||
* App can accept a `template` property that has an inline template or a `templateUrl` property that points to an external html template.
|
||||
*
|
||||
* @usage
|
||||
* ```ts
|
||||
* import {App} from 'ionic/ionic';
|
||||
*
|
||||
* @App({
|
||||
* templateUrl: 'app/app.html'
|
||||
* })
|
||||
*
|
||||
* export class MyApp{
|
||||
*
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @param {Object} [config] - the app's [../Config](Config) object
|
||||
* @param {String} [template] - the template to use for the app root
|
||||
* @param {String} [templateUrl] - a relative URL pointing to the template to use for the app root
|
||||
*
|
||||
*/
|
||||
export function App(args={}) {
|
||||
|
||||
|
Reference in New Issue
Block a user