mgechev / angularjs-style-guide

📚 Community-driven set of best practices for AngularJS application development

Home Page:https://mgechev.github.io/angularjs-style-guide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Always including templates / partials along-side other code?

skawaguchi opened this issue · comments

Further to the point of including HTML, CSS, and test files in the same package for directives, why not do the same thing for controllers? We've been doing it and find it helps the development flow quite a bit. When we run our build scripts (gulp-ngtemplate, htmlhint, etc.) it's easy enough to just target .html files, so we haven't seen the need for a separate partials directory.

I think it may create troubles when reusing templates across controllers. Have you ever experienced this issue?