mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
feat(loading): add setContent function
This commit is contained in:
@ -36,6 +36,14 @@ export class Loading extends ViewController {
|
||||
return this._nav && this._nav.config.get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} content loading message content
|
||||
*/
|
||||
setContent(content: string) {
|
||||
this.data.content = content;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Present the loading instance.
|
||||
*
|
||||
|
@ -79,9 +79,9 @@ export class ViewController {
|
||||
didUnload: EventEmitter<any>;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
data: any;
|
||||
protected data: any;
|
||||
|
||||
/**
|
||||
* @private
|
||||
|
Reference in New Issue
Block a user