The above is the error content ([(ngmodel)] bidirectional binding fails)
Solution: add in module.ts
import { FormsModule } from '@angular/forms'; imports: [ FormsModule, ... ],
In this way, you can use [(ngmodel)] two-way binding
The above is the error content ([(ngmodel)] bidirectional binding fails)
Solution: add in module.ts
import { FormsModule } from '@angular/forms'; imports: [ FormsModule, ... ],
In this way, you can use [(ngmodel)] two-way binding