I'm having some issues using $scope.$watch in an ES6 project. The watch fires once and then never again.
Here's the code:
export class SomeController {
constructor($log, $scope) {
'ngInject'
this.watched = 1;
$scope.$watch('watched',(nv,ov)=>{
$log(nv); //only fires once
});
}
otherMethods(){}...
}
Specifically I am using this generator: https://github.com/Swiip/generator-gulp-angular