Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you create containers with .container.ts and not .component.ts #1

Open
indranshastri opened this issue May 17, 2018 · 3 comments

Comments

@indranshastri
Copy link

Greetings
I was working on your demo I found the containers are the smart component but as and when I try to generate smart components it is creating components with .compoent.ts and not with .container.ts which is creating a problem with the naming convention so please guide
Thanks in advance

Regards

@mjangir
Copy link
Owner

mjangir commented May 18, 2018

The difference between containers and components is termed as stateful and dump angular components. Containers are meant to be connected to any state store like ngrx in case of angular and redux in case of react. There is no separate commands to generate containers. Just create a component and rename it.

@indranshastri
Copy link
Author

WE can still create a schematics for the same can't we

@vrkansagara
Copy link

vrkansagara commented Sep 10, 2018

Do we stick with component inside the code base and export as container, Does this is good approach?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants