Answers for "Warning: Flex Layout loaded on the server without FlexLayoutServerModule"

0

Warning: Flex Layout loaded on the server without FlexLayoutServerModule

//app.server.module.ts
import {NgModule} from '@angular/core';
import {FlexLayoutServerModule} from '@angular/flex-layout/server';

@NgModule({
  imports: [
    ... other imports here
    FlexLayoutServerModule,
  ]
})
export class AppServerModule {}

//app.module.ts to simulate breakpoints
@NgModule({
  imports: [
	... other imports here
	FlexLayoutModule.withConfig({ssrObserveBreakpoints: ['xs', 'lt-md']})
  ]
})
export class AppModule {}
Posted by: Guest on April-06-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language