Skip to content

Commit

Permalink
feat(loading): add setContent function
Browse files Browse the repository at this point in the history
  • Loading branch information
stonelasley committed Aug 13, 2016
1 parent 0579bba commit c750847
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/components/loading/loading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
4 changes: 2 additions & 2 deletions src/components/nav/view-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ export class ViewController {
didUnload: EventEmitter<any>;

/**
* @private
* @protected
*/
data: any;
protected data: any;

/**
* @private
Expand Down

0 comments on commit c750847

Please sign in to comment.