Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active March 5, 2021 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/ef1a64bd15ab2a3e7e3b8762945ed2d9 to your computer and use it in GitHub Desktop.
Save bjoerntx/ef1a64bd15ab2a3e7e3b8762945ed2d9 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
import { RouterModule, Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { NavMenuComponent } from './nav-menu/nav-menu.component';
import { HomeComponent } from './home/home.component';
import { DocumentEditorModule } from '@txtextcontrol/tx-ng-ds-document-editor';
import { OauthService } from './oauth.service';
@NgModule({
declarations: [
AppComponent,
NavMenuComponent,
HomeComponent,
],
imports: [
BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
HttpClientModule,
FormsModule,
RouterModule.forRoot([
{
path: '',
component: HomeComponent,
pathMatch: 'full',
resolve: { token: OauthService } },
]),
DocumentEditorModule
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment