mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
docs(decorators): content for @App
This commit is contained in:
@ -115,9 +115,17 @@ function appendConfig(cls, config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO
|
* @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.
|
||||||
|
*/
|
||||||
export function App(args={}) {
|
export function App(args={}) {
|
||||||
|
|
||||||
return function(cls) {
|
return function(cls) {
|
||||||
// get current annotations
|
// get current annotations
|
||||||
let annotations = Reflect.getMetadata('annotations', cls) || [];
|
let annotations = Reflect.getMetadata('annotations', cls) || [];
|
||||||
|
Reference in New Issue
Block a user