your recipe card header background

    Angular Module Root

    0

    0

    Jose Romero

    Angular TypeScript Recipes

    The code first imports the BrowserModule and HttpModule. Then, it declares AppComponent and bootstrap it. Finally, it exports AppModule. AppComponent specifies the structure and behavior of the application, while the bootstrap attribute specifies how the AppComponent should be initialized. In this case, AppComponent is initialized by using the imports and declarations attributes.

    Library: angular

    Shortcut: angular.module.root

    import { NgModule } from '@angular/core';
    import { BrowserModule  } from '@angular/platform-browser';
    import { HttpModule } from '@angular/http';
    
    @NgModule({
      imports: [
        BrowserModule,
        HttpModule,
      ],
      declarations: [AppComponent],
      bootstrap: [AppComponent],
    })
    export class AppModule { }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.