Not working
nsisodiya opened this issue · comments
The new attributes will be ignored by default, see https://github.com/melanke/Watch.JS/#by-default-new-attributes-will-be-ignored
You have to set true
on 4th parameter.
//defining a 'watcher' for an attribute
watch(ex1, function(){
alert("attr1 changes!", arguments);
}, 1, true);