In the following snippet:
angular.module('myModule')
.component('myComponent', {
controller : [
MyComponentController
],
bindings: {
input: '<'
}
});
According to documentation - section "Components have a well-defined lifecycle" in order to monitor that the binding input
has changed we could use $onChanges
lifecycle method. I can't make it work.
Thi is how I am using it:
function MyComponentController() { self.$onChanges = function (changesObj){ // some code here } }
But the code doesn't even enter the fuction.