Does AngularJS fit into the (3)-tier architecture?
angularjs, design-patterns
Solution
AngularJS has an MVW structure model-view-"whatever works for you" link
So, you decide what you need it to be.
Problem
This is rather an academical question but maybe someone can give me a hint here. What kind of architecture is AngularJS? First I thought about a 3-tier archtiecture: Presentation-Layer: HTML5 / CSS Application Layer: AngularJS DataLayer: AngularJS (??) ...but thinking a while longer basically does this fit in a multi-tier architectural design pattern at all? Because Angular has a two-way binding whereas changes within the view affect the model (data-layer) without going through an application layer here. Furthermore Angular directly touches the DOM. So I ended up with: Presentation-Layer: AngularJS (manipulating DOM) Application-Layer: AngularJS Data-Layer: AngularJS So how can AngularJS be described the in terms of design patterns?