Complete Angular 2 Guide: Components in Depth
Ashish Singh
1244

Surprised you didn’t discuss modules in relation to components, especially when encapsulating other directives, pipes, services into the module which is preferred method in order to direct all the shared files to the component itself. In turn you injected all your code inside the component module itself which is a big no no, shadow dom with css is also crap and has negative points with SEO due to making a request for each component that loads in the DOM.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.