Flex Layout loaded on the server without FlexLayoutServerModule code example
Example: Warning: Flex Layout loaded on the server without FlexLayoutServerModule
import {NgModule} from '@angular/core';
import {FlexLayoutServerModule} from '@angular/flex-layout/server';
@NgModule({
imports: [
... other imports here
FlexLayoutServerModule,
]
})
export class AppServerModule {}
@NgModule({
imports: [
... other imports here
FlexLayoutModule.withConfig({ssrObserveBreakpoints: ['xs', 'lt-md']})
]
})
export class AppModule {}