"No provider for RadioControlRegistry" in angular 2 我应该添加什么供应商?
"No provider for RadioControlRegistry" in angular 2 what provider should I add?
我应该在提供程序组件中添加什么提供程序?
<div class="radio">
<input let match id="male" type="radio" name="gender" value="true" [(ngModel)]="isMatching" (click)="isMatching(match.value)" >
这是我的控制台输出:
您需要将 FormsModule
添加到 imports
@NgModule({
imports: [CommonModule, FormsModule]
...
})
class MyModule {}
我应该在提供程序组件中添加什么提供程序?
<div class="radio">
<input let match id="male" type="radio" name="gender" value="true" [(ngModel)]="isMatching" (click)="isMatching(match.value)" >
这是我的控制台输出:
您需要将 FormsModule
添加到 imports
@NgModule({
imports: [CommonModule, FormsModule]
...
})
class MyModule {}