mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Add the possibility to have a custom scope
This line adds the possibility to use a custom scope with $ionicLoading I found it useful to show the progress of the loading process. Demo: http://codepen.io/anon/pen/Ltign
This commit is contained in:
3
js/angular/service/loading.js
vendored
3
js/angular/service/loading.js
vendored
@@ -114,6 +114,9 @@ function($ionicLoadingConfig, $ionicBody, $ionicTemplateLoader, $ionicBackdrop,
|
||||
$ionicTemplateLoader.load(options.templateUrl) :
|
||||
//options.content: deprecated
|
||||
$q.when(options.template || options.content || '');
|
||||
|
||||
|
||||
self.scope = options.scope || self.scope;
|
||||
|
||||
|
||||
if (!this.isShown) {
|
||||
|
||||
Reference in New Issue
Block a user