Angular Module



    Jose Romero

    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

    import { NgModule } from '@angular/core';
      imports: [],
      exports: [],
      declarations: [NameComponent],
      providers: [],
    export class NameModule { }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.