Closed agustinvinao closed 7 years ago
If you are importing NgReduxFormModule
you don't also need to import NgReduxFormConnectModule
since it's contents are already included.
I've found the problem, my code is a Module inside another Module, so I need to import NgReduxFormModule on each module.
This is a...
What toolchain are you using for transpilation/bundling?
ngc
Environment
NodeJS Version: 7.10.0 Typescript Version: 2.3.4 Angular Version: 4.3.4 @angular-redux/store version: 6.5.7 @angular/cli version: 1.2.6 OS: OSX 10.12.6
Link to repo showing the issus
(optional, but helps a lot)
Expected Behaviour:
Using the module
Actual Behaviour:
Im trying to implement the module in my application but when I try to use:
Can't bind to 'connect' since it isn't a known property of 'form'
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { NgReduxModule } from '@angular-redux/store'; import { NgReduxFormModule, NgReduxFormConnectModule } from '@angular-redux/form';
import { AnimalFormDialogComponent } from './animal-form.dialog.component';
import { MdDialogModule } from '@angular/material';
@NgModule({ declarations: [ AnimalFormDialogComponent
], imports: [ CommonModule, ReactiveFormsModule, FormsModule, NgReduxFormModule, NgReduxModule, NgReduxFormConnectModule, MdDialogModule ], providers: [], exports: [AnimalFormDialogComponent] }) export class AnimalFormDialogModule { }