angular-redux / example-app

Example using @angular-redux/store, @angular-redux/router, and @angular-redux/form together with the Angular CLI
123 stars 101 forks source link

Not Able to use Reactive Forms with Redux #35

Open niisar opened 7 years ago

niisar commented 7 years ago

Page.ts

frm: FormGroup; constructor(private fb: FormBuilder) { } ngOnInit() { this.frm = this.fb.group({ email: ['', Validators.required], }); }

Page.html

<form [formGroup]="frm" connect="ReactiveForm"> <input class="form-control" formControlName="email" /> </form>

Error

core.es5.js:1084 ERROR Error: Uncaught (in promise): Error: No provider for NgForm! Error: No provider for NgForm!

SethDavenport commented 7 years ago

angular-redux/form only supports template driven forms at this time