Yogesh Chauhan's Blog

A complete diagram with building blocks of an Angular application

in Angular on May 9, 2020

We've learned the basics about the main building blocks of an Angular application in the following 3 articles.

Part 1: What Are Modules And Components In Angular?

Part 2: Templates, Directives, Data Binding, Services And Dependency Injection

Part 3: How Routing Works In Angular?

The following diagram shows how these basic pieces are related.

building blocks of an Angular application
building blocks of an Angular application

Together, a component and template define an Angular view.

A decorator on a component class adds the metadata, including a pointer to the associated template.

Directives and binding markup in a component's template modify views based on program data and logic.

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


Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to uninstall Cocoapods from the Mac OS?

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
CSS Overflow Property with ExamplesCSSHow to Find the Highest (or Lowest) Number in an Array in JavaScript?JavaScriptFive common features of Angular template syntax (with examples)AngularData Flows in ReactReactHow does Binding work in JavaScript?JavaScript:in-range and :out-of-range selector in CSSCSSHow to Install PHP Laravel on MacOS Catalina?PHP10 Usability Blunders to AvoidUI/UXThe :last-of-type selectorCSSGap in Flex?CSSHow to swap images on hover using CSS?CSSHow to change HTML content on click using JavaScript?JavaScript