var scope = $modal.$scope = options.scope && options.scope.$new() || $rootScope.$new();