encapsulates an input box component, but I use this component many times in the same parent component. Because there is a problem with two-way binding, the value change of the second will lead to the change of the first value
encapsulates an input box component, but I use this component many times in the same parent component. Because there is a problem with two-way binding, the value change of the second will lead to the change of the first value
first of all, whether the bidirectional binding implements ControlValueAccessor.
then remove the bidirectional binding, split it into individual data streams and events, and test whether this will happen again.
Previous: Mini Program bug on the cover-view rotation component! Ask for help.
Next: Vue project issues
app.component.ts import { Component } from @angular core ; import { AppService } from . service app.service ; @Component({ selector: app-root , templateUrl: . app.component.html , styleUrls: [ . app.component.css ] }) export clas...
problem description the angular4 project used by my local framework uses the sweetAlert2 pop-up component and defines the data code as follows export class HeaderComponent implements OnInit { public secondNavState:number; public busyStateNum:n...