-
-
Notifications
You must be signed in to change notification settings - Fork 493
Closed
Description
Steps to reproduce
- try changing any option which type is Function in runtime
Demo: http://jsfiddle.net/95dLpcgs/
Expected behaviour
New option is applied - as stated in docs
Actual behaviour
Option is not applied
Investigation result
This is because when watching on options under the hood angular.equals
is used, which ignores functions - try running angular.equals({a: () => 1}, {a: () => 2})
- it returns true
though objects aren't equal (I assume this is by design)
Possible workaround
Every time when Function option is changed - add some random value to options (ugly, but works - look at demo page above)
Metadata
Metadata
Assignees
Labels
No labels