Skip to main content

Angular NgModules - angular modules simple example - Angular 7-6-5-4-3-2-1-AngularJs


Angular Module

In Angular, Modules are the collection of the Components, Service directives, and Pipes which are related such that they can be combined to form a module.

 

A module is a collection of services, directives, controllers, filters, and configuration information. angular.module is used to configure the 


What's an NgModule

NgModules are simply TypeScript classes decorated with the @NgModule decorator imported from the @angular/core package.
Modules provide a way for developers to organize their code and they are particularly helpful for managing large apps.

In Angular, Modules are the collection of the Components, Service directives, and Pipes which are related such that they can be combined to form a module.

Comments

Popular posts from this blog

MVC Action Filters using log4net

Add log4net dll reference to your MVC project ------------------------------------------------------------------------------ Create following  model inside your models folder ------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Web; using System.Web.Mvc; namespace MVCWebApp.Models {     public class LoggingFilterAttribute : ActionFilterAttribute     {         #region Logging         /// <summary>         /// Access to the log4Net logging object         /// </summary>         protected static readonly log4net.ILog log =           log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);         pri...

Asp.net grid CRUD with ADO.NET

Asp.net grid CRUD with ADO.NET A GridView is a graphical control element that presents a tabular view of data. A typical Grid View also supports some or all of the following: Clicking a column header to change the sort order of the Grid. Dragging column headers to change their size and their order. The GridView control displays the values of a data source in a table. Each column represents a field, while each row represents a record. Support to data source controls, such as SqlDataSource. Support sort capabilities. Support update and delete capabilities. Support paging capabilities. Support row selection capabilities. Code behind feature access to the GridView object model to dynamically set properties, handle events, and so on. Many key fields. Many data fields for the hyperlink columns. Customized style layout through themes and styles using css and javascript. The following operations can be performed using GridView control in ASP.NET using C# code behind. Fea...

Asp.net MVC Grrid with search add update and delete

CRUD Operations Using jqGrid In ASP.NET MVC 1. Create a new MVC Project and give the name for your project. To create a new MVC  project, Click File > New > Project or press CTRL + SHIFT + N.     2. Select MVC as a project Template with Individual Authentication.     3. Now for creating the table into the database using Code First Approach, I am creating a folder with name "Entities". For creating the folder inside the project right click on the folder and click on Add then click on  New Folder .     Now give the name for the folder as "Entities" .   4.  Add a class inside  Entities  folder with Name "StudentMaster.cs". You can follow the below figure to add class:   Now one dialog box will be open give the name for that class as "StudentMaster.cs".     5. Now write the following code into "StudentMaster". using  System;   using  System....