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 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

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
What is XP (Extreme Programming) and When should it be used?MiscellaneousCONCAT and CONCAT_WS Functions in PostgresPostgresHow services and dependency injection work in Angular?AngularABS and NEG functions in Envision BasicEnvision BasicRevisiting variable scope in JavaScriptJavaScriptCreate a responsive image gallery using CSS gridCSSCREATE DATABASE in PostgreSQLPostgresfirst-of-type and last-of-type selectors in CSSCSSWhat’s the difference between visibility: hidden and display: none?CSSSorting Object Arrays in JavaScriptJavaScriptRecursive WITH Queries in Postgres (Common Table Expressions)PostgresFull and Partial CUBE in Postgres with ExamplesPostgres