Angular Course — Architecture Overview

Miroslav Maksimovic
The Startup
Published in
2 min readOct 6, 2020

Angular has 5 building blocks:

Architecture overview

Modules

The Module is a building block that contains routes, components, services, and more.

They can be divided in:

  • app module that contains app-specific logic,
  • feature modules that contain logic for each individual module
  • a shared module that contains logic that can be shared between any of the feature modules.

Components

Components

A typical angular component can contain a template, data, and logic.
It is a forming part of a DOM tree.

Directives

Directives

They are being used to attach behavior, extend or transform a particular element and its children. Manipulation of components, elements, is their main preoccupation.

Services

Services

This is what we call a data layer, the logic that is not tied to the component.
Examples of services can be API requests, device-specific APIs, etc.

Routing

It renders a component based on URL state, it is what powers angular navigation.

--

--

Miroslav Maksimovic
The Startup

Software Engineer, passionate knowledge transferer, writer for The Startup, largest publication @Medium with over 700k followers