Generates a component with Store injected into its constructor. You can optionally provide the path to your reducers and your state interface.
ng generate container ComponentName [options]ng generate co ComponentName [options]Angular CLI component options.
Provide the path to your file with an exported state interface
--state- Type:
string
- Type:
Provide the name of the interface exported for your state interface
--stateInterface- Type:
string - Default:
State
- Type:
Generate a UsersPage container component with your reducers imported and the Store typed a custom interface named MyState.
ng generate container UsersPage --state reducers/index.ts --stateInterface MyState