Skip to content

Commit 9262478

Browse files
author
Dawid Adamek
committed
feat(uiSref): Accept notify in ui-sref-opts.
+ Issue: angular-ui#1875
1 parent dba25db commit 9262478

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
@@ -386,7 +386,7 @@ describe('uiStateRef', function() {
386386

387387
expect(transitionOptions.reload).toEqual(true);
388388
expect(transitionOptions.absolute).toEqual(true);
389-
expect(transitionOptions.notify).toBeUndefined();
389+
expect(transitionOptions.notify).toEqual(true);
390390
}));
391391
});
392392
});

0 commit comments

Comments
 (0)