FlexLayoutServerModule code example

Example: 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 {}