Demo entry 6659376

app.component.ts

   

Submitted by anonymous on Nov 10, 2017 at 18:44
Language: TypeScript. Code size: 714 Bytes.

import { BrowserModule } from '@angular/platform-browser'; 
import { NgModule, ApplicationRef } from '@angular/core'; 
import { CommonModule } from '@angular/common'; 
import { FormsModule } from '@angular/forms'; 
import { AppComponent } from './app.component'; 

import { D3Service } from 'd3-ng2-service'; // <-- import statement 

@NgModule({ 
  declarations: [ 
   AppComponent, 
   TestD3Component // <-- declaration of the D3 Test component used below 
  ], 
  imports: [ 
   BrowserModule, 
   CommonModule, 
   FormsModule 
  ], 
  providers: [D3Service], // <-- provider registration 
  entryComponents: [AppComponent], 
  bootstrap: [AppComponent] 
}) 
export class AppModule { 
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).