26
无法绑定到“ formGroup”,因为它不是“ form”的已知属性
情况: 请帮忙!我正在尝试使Angular2应用程序中的表单变得非常简单,但是不管它永远无法工作。 角版本: 角2.0.0 Rc5 错误: Can't bind to 'formGroup' since it isn't a known property of 'form' 编码: 风景: <form [formGroup]="newTaskForm" (submit)="createNewTask()"> <div class="form-group"> <label for="name">Name</label> <input type="text" name="name" required> </div> <button type="submit" class="btn btn-default">Submit</button> </form> 控制器: import { Component } from '@angular/core'; import { FormGroup, FormControl, Validators, FormBuilder …