Newspaper Code Structure for Angular

Kent C. Dodds
1 min readMay 18, 2015

So, how does this “Newspaper Code Structure” concept fit in with AngularJS? Here’s a gist that illustrates how this applies to an AngularJS controller and directive. (Read the comments)

Conclusion

The whole idea is to make it easy to consume/maintain components. By organizing your code in a consistent way, it seriously helps this.

Catch me on twitter or in the comments if you wish to discuss :-)

--

--

Kent C. Dodds

Making software development more accessible · Husband, Father, Latter-day Saint, Teacher, OSS, GDE, @TC39 · @PayPalEng @eggheadio @FrontendMasters · #JS