Tag: architecture


Structure of an Enterprise System in Angular 2


When building a large-scale application, one has to carefully design the code structure in the project. A poor structure can lead to maintainability issues and decrease the productivity of the development team. When the system grows, it will be hard to navigate through the structure and locate the class implementing a piece of functionality. In […]


Building Complex Business Logic With Angular 2 Services

Angular 2 services

In a traditional, multi-layered architecture, front-end side of the application occupies two of them: presentation and a part of business logic layer. Components, which are the primary construction blocks in Angular 2, make up the presentation tier, while services pertain to the business-logic one. In this article we dive deep into the world of Angular […]


Data Flow in Angular 2 Applications

data flow in angular 2

In this post we continue our study on how to build maintainable systems in Angular 2. We have already discussed the importance of proper code structure and good practices for dividing an application into components. However, a system is not just a static source code. Lots of the complexity comes from its runtime behavior, i.e. […]


Generalizing Components in Angular

angular generalizing components

Components in Angular 2 allow to design maintainable applications where business logic is encapsulated and reusable. However sometimes we would like to have even more reusability. We would like to use components as templates with some other component inside. In object oriented programming we¬†can use inheritance to express some common functionality in base classes and […]


Component-based Architecture in Angular 2

Angular 2 components

One of the main architectural principles in Angular 2 is that an application should be composed of well encapsulated, loosely coupled components. This principle is obvious in the backend world, but it is not yet well established in the frontend development. In this article, we discuss the advantages of this approach, show how easy it […]