Skip to content

Instantly share code, notes, and snippets.

@webmasterdevlin
Created July 28, 2019 14:16
Show Gist options
  • Save webmasterdevlin/7a789a96f63ad53d8f89c74f0ec33fb0 to your computer and use it in GitHub Desktop.
Save webmasterdevlin/7a789a96f63ad53d8f89c74f0ec33fb0 to your computer and use it in GitHub Desktop.
Akita Module: src/app/app.module.ts
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HeaderNavComponent } from './shared/components/header-nav.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { BrowserModule } from '@angular/platform-browser';
import { environment } from '../environments/environment';
import { AkitaNgDevtools } from '@datorama/akita-ngdevtools';
@NgModule({
declarations: [AppComponent, HeaderNavComponent],
imports: [
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
environment.production ? [] : AkitaNgDevtools.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment