angular-es6 icon indicating copy to clipboard operation
angular-es6 copied to clipboard

How to use ES6 classes to use $onChange component hook

Open mikeerickson opened this issue 9 years ago • 1 comments

I am battling getting $onChange to work (I can get $onInit to fire just fine).

Here is a portion of my ES6 class (which is my controller)

export default class ComplimentsController {

  constructor() {
    console.log('constructor')
  }

  $onInit() {
    console.log('this fires as expected')
  }

  $onChange(value) {
    console.log('this doesnt fire');
  }

}

mikeerickson avatar May 06 '16 19:05 mikeerickson

should be $onChanges

afonsobarros avatar May 23 '17 11:05 afonsobarros