Posts

Showing posts from February, 2023

Frequently-used modules

Following are the frequently used modules  1. BrowserModule @angular/platform-browser  2. CommonModule @angular/common 3. FormsModule @angular/forms 4. ReactiveFormsModule @angular/forms 5. RouterModule: @angular/router 6. HttpClientModule: @angular/common/http

Feature Modules in Angular

  What is a feature module in angular? 1. Feature modules are NgModules for the purpose of organizing code 2. As your application grows, you can organize code relevant for a specific feature. 3. This helps apply clear boundaries for features. 4. With feature modules, you can keep code related to a specific functionality or feature separate from other code Feature Modules vs Root Modules 1. A feature modules is an organizational best practice, as opposed to a concept of the core Angular API 2. A feature modules delivers a cohesive set of functionality focused on a specific application need such as a user workflow, routing, or forms 3. While you can do everything within the root module, feature modules helps you partition the application into focused areas 4. A feature module collaborates with the root module and with other modules through the services it provides and components, directives, and pipes that it shares How to make a feature module 1. Assuming you already have an applica...