I am on learning phase of angular4. Now creating single app. but want to know which is better, templating or better to work via component for each modules?
1 Answer
Why? One component per file makes it far easier to read, maintain, and avoid collisions with teams in source control.
Why? One component per file avoids hidden bugs that often arise when combining components in a file where they may share variables, create unwanted closures, or unwanted coupling with dependencies.
Why? A single component can be the default export for its file which facilitates lazy loading with the router. for more details https://angular.io/guide/styleguide
So the Conclusion is if you have modular structure it will help you to easily understand and easy maintainable as your application grows big. So it is recommended to follow these coding practices to avoid any issues while your are in mid developing phase.
templating?