mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
provide APP_ID instead of BrowserModule.withServerTransition, remove BrowserModule import
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { APP_BASE_HREF, CommonModule, DOCUMENT } from '@angular/common';
|
||||
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import { APP_ID, NgModule } from '@angular/core';
|
||||
|
||||
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { EffectsModule } from '@ngrx/effects';
|
||||
@@ -124,13 +123,13 @@ const PROVIDERS = [
|
||||
AppComponent,
|
||||
],
|
||||
imports: [
|
||||
BrowserModule.withServerTransition({appId: 'dspace-angular'}),
|
||||
...IMPORTS,
|
||||
NgxMaskModule.forRoot(),
|
||||
ThemedRootComponent
|
||||
],
|
||||
providers: [
|
||||
...PROVIDERS,
|
||||
{provide: APP_ID, useValue: 'dspace-angular'},
|
||||
provideCore(),
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
|
Reference in New Issue
Block a user