Merge pull request #2372 from ankri/patch-1

feat(ionicLoading): Add the option to use a custom scope
This commit is contained in:
Drew Rygh
2014-10-17 17:18:16 -05:00

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