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:
ankri
2014-10-09 14:51:10 +02:00
parent 8f34cdbd7f
commit 22740ca443

View File

@@ -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) {