build-your-own-angularjs icon indicating copy to clipboard operation
build-your-own-angularjs copied to clipboard

p14: "triggers chained watchers in the same digest" throws error

Open prashanth2692 opened this issue 8 years ago • 0 comments

the unit test "triggers chained watchers in the same digest" thows the error "TypeError: undefined is not an object (evaluating 'newValue.subString')". this is expected because, we are calling .substring(0,1), even before it is assigned a value in the second watch's listener function, but in the text the expected behaviour is written otherwise.

Please can you clarify.

prashanth2692 avatar Jan 05 '17 15:01 prashanth2692