import { NgModule } from '@angular/core';
      
      @NgModule({
        imports: [],
        exports: [],
        declarations: [NameComponent],
        providers: [],
      })
      export class NameModule { }
      Typescript language logo
      your recipe card header background

      Angular Module

      Angular TypeScript Recipes

      The NgModule hooks into the @NgModule decorator of other modules, and exports an object with the following properties:

      imports: Array of other modules' names

      exports: Array of other modules' exports

      declarations: An object with the names of all components declared in this module

      providers: An object with the names of all services that are available in this module

      Library: angular

      Shortcut: angular.module

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.