Skip to content

Commit 99d0be9

Browse files
author
Dawid Adamek
committed
Accept notify in ui-sref-opts.
+ Issue: #1875
1 parent dba25db commit 99d0be9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/stateDirectives.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function stateContext(el) {
7878
*/
7979
$StateRefDirective.$inject = ['$state', '$timeout'];
8080
function $StateRefDirective($state, $timeout) {
81-
var allowedOptions = ['location', 'inherit', 'reload', 'absolute'];
81+
var allowedOptions = ['location', 'inherit', 'reload', 'absolute', 'notify'];
8282

8383
return {
8484
restrict: 'A',

test/stateDirectivesSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ describe('uiStateRef', function() {
366366
describe('transition options', function() {
367367

368368
beforeEach(inject(function($rootScope, $compile, $state) {
369-
el = angular.element('<a ui-sref="contacts.item.detail({ id: contact.id })" ui-sref-opts="{ reload: true, absolute: true, notify: true }">Details</a>');
369+
el = angular.element('<a ui-sref="contacts.item.detail({ id: contact.id })" ui-sref-opts="{ reload: true, absolute: true }">Details</a>');
370370
scope = $rootScope;
371371
scope.contact = { id: 5 };
372372

0 commit comments

Comments
 (0)