Site icon Tutorial

Angular Architecture and Building Blocks

Go back to Tutorial

Angular is a platform and framework for building client applications in HTML and TypeScript. Angular is itself written in TypeScript. It implements core and optional functionality as a set of TypeScript libraries that you import into your apps.

The basic building blocks of an Angular application are NgModules, which provide a compilation context for components. NgModules collect related code into functional sets; an Angular app is defined by a set of NgModules. An app always has at least a root module that enables bootstrapping, and typically has many more feature modules.

Both components and services are simply classes, with decorators that mark their type and provide metadata that tells Angular how to use them.

An app’s components typically define many views, arranged hierarchically. Angular provides the Router service to help you define navigation paths among views. The router provides sophisticated in-browser navigational capabilities.

As per diagram, together, a component and template define an Angular view.

The dependency injector provides services to a component, such as the router service that lets you define navigation among views.

Go back to Tutorial

Exit mobile version