Skip to content

How to use ES6 classes to use $onChange component hook #11

@mikeerickson

Description

@mikeerickson

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');
  }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions