Select Page

AngularJS in Patterns

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.

AngularJS is a JavaScript framework developed by Google. It intends to provide a solid base for the development of CRUD Single-Page Applications (SPA). SPA is a web application, which once loaded, does not require full page reload when the user performs any actions with it. This means that all application resources (data, templates, scripts, styles) should be loaded with the initial request or better – the information and resources should be loaded on demand. Since most of the CRUD applications has common characteristics and requirements, AngularJS intends to provide the optimal set of them out-of-the-box.

AngularJS in Patterns

by mgechev (Online reading only) – 5 Chapters – English, Japanese, Russian, French & Chinese

The Only Option - Win More Client Work than You Need, by Being Indispensable by Alex Mathers