This commit is contained in:
Max Lynch
2013-11-04 22:04:57 -06:00
parent 11e0e478d1
commit 489b673ea4
3 changed files with 8 additions and 8 deletions

View File

@ -10,8 +10,8 @@ angular.module('ionic.service.actionSheet', ['ionic.service.templateLoad', 'ioni
*
* @param {object} opts the options for this ActionSheet (see docs)
*/
show: function(opts) {
var scope = $rootScope.$new(true);
show: function(opts, $scope) {
var scope = $scope && $scope.$new() || $rootScope.$new(true);
angular.extend(scope, opts);