AngularJS in Patterns
One of the best ways to learn something new is to see how the things you already know are used in it. This online ebook does not intend to make its readers familiar with the design or architectural patterns; it suggests basic understanding of the concepts of the OOP, design patterns and architectural patterns. The goal of this paper is to describe how different software design and architectural patterns are applied in AngularJS or any AngularJS single-page application.
This online ebook begins with brief overview of the AngularJS framework. The overview explains the main AngularJS components – directives, filters, controllers, services, scope. The second section lists and describes different design and architectural patterns, which are implemented inside the framework. The patterns are grouped by the AngularJS component they are used in. If some patterns are used inside multiple components it will be explicitly mentioned. The last section contains a few architectural patterns, which are commonly used inside most of the single-page applications built with AngularJS.