Answer the question
In order to leave comments, you need to log in
Passing data to an Angular 2 component?
How to pass a two-way variable to a component in Angular 2, like what was done in the first Angular using
scope:{
data: '=',
callback:'&'
}
<my-component [(test)]="test" [(callback)]="callback"></my-comonent>
callback(){
console.log(this)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question