Understanding Angular modules (NgModule) and their scopes

Why NgModule?

NgModule and scopes / visibility

When to import a NgModule?

When to import main Angular modules?

Modules to import each time you need them

Modules to import only once

Mixed NgModules

Lazy-loaded modules

Why?

Summary

Architecture in Angular projects

Become a Pro!

--

--

--

JavaScript and Angular trainer and developer, PHP certified,

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Websockets streaming magic. Loading thousands of images in Vue.js.

Five Common GraphQL Problems and How Neo4j-GraphQL Aims To Solve Them

Javascript, JSON

Dig ANTLR4 with Typescript

Client Side Form Validation Using jQuery Validation Plugin

What is fetch()

Egretia Bi-weekly Report XXXIII

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cyrille Tuzi

Cyrille Tuzi

JavaScript and Angular trainer and developer, PHP certified,

More from Medium

How to add Bootstrap to the Angular Project

“Let’s start learning Angular.” | Part 01

Upgrade Angular application from Angular 5 to Angular 12

Angular vs AngularJS: Differences You Are Not Aware!