Suppose I have simple Angular2 component
@Component({ selector: \'parent\' })
@View({
template: `
You can use getters and setters to manage it. For your example Child component must be looked like this:
@Component({
selector: 'child',
properties : ['model']
})
@View({
template: `
Child {{ model }}
`,
})
class Child {
_model: number;
set model(newModelValue) {
// Here we are
console.log('new model value: ' + newModelValue)
this._model = newModelValue;
}
get model() {
return this._model;
}
}
Here is the plunker for your case