your recipe card header background

    Angular Root Module

    0

    0

    lucycodes42

    Angular snippets for TypeScript

    In this code, the NgModule is first imported. Next, the BrowserModule and HttpModule are imported. Finally, the AppComponent is declared and bootstrapped.

    Library: angular

    Shortcut: a_module_root

    import { NgModule } from '@angular/core';
    import { BrowserModule  } from '@angular/platform-browser';
    import { HttpModule } from '@angular/http';
    
    import { AppComponent } from './app.component';
    
    @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.