Skip to content

Instantly share code, notes, and snippets.

@dileno
Last active September 14, 2019 19:13
Show Gist options
  • Save dileno/2d57719d5a36e95f1747323fe25bb314 to your computer and use it in GitHub Desktop.
Save dileno/2d57719d5a36e95f1747323fe25bb314 to your computer and use it in GitHub Desktop.
App.module
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { ReactiveFormsModule } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { BlogPostsComponent } from './blog-posts/blog-posts.component';
import { BlogPostComponent } from './blog-post/blog-post.component';
import { BlogPostAddEditComponent } from './blog-post-add-edit/blog-post-add-edit.component';
import { BlogPostService } from './services/blog-post.service';
@NgModule({
declarations: [
AppComponent,
BlogPostsComponent,
BlogPostComponent,
BlogPostAddEditComponent
],
imports: [
BrowserModule,
HttpClientModule,
AppRoutingModule,
ReactiveFormsModule
],
providers: [
BlogPostService
],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment