Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
};
// Noop handler for factory function
export function noop() {
return () => {};
}
/** @dynamic */
@NgModule({
imports: [
CommonModule,
HttpClientModule,
FontAwesomeModule,
MatSnackBarModule,
NgxPageScrollCoreModule.forRoot({ _logLevel: 3 }),
NavigatorModule.forRoot(defaultMenu),
// NOTE: NGXS: If you have feature modules they need to be imported after the root module.
NgxsModule.forRoot([MenuState, PreferenceState, ProfileState, AppState], {
developmentMode: !environment.production,
}),
NgxsStoragePluginModule.forRoot({
// FIXME: https://github.com/ngxs/store/issues/902
key: ['preference', 'app.installed', 'auth.isLoggedIn'],
}),
NgxsFormPluginModule.forRoot(),
NgxsWebsocketPluginModule.forRoot({
url: environment.WS_EVENT_BUS_URL,
}),
NgxsRouterPluginModule.forRoot(),
AuthModule.forRoot(),
// OidcModule.forRoot({
it('should create an instance', () => {
const directive = new NgxPageScrollDirective(new PageScrollService(defaultPageScrollConfig), null, null);
expect(directive).toBeTruthy();
});
});
import { TopMenuComponent } from './common/top-menu/top-menu.component';
import { DiscoverComponent } from './common/discover/discover.component';
import { DocsModule } from './docs';
import { NgApiDoc } from './docs/api-docs/api-docs.model';
import { StyleManager } from './theme/style-manager';
import { ThemeStorage } from './theme/theme-storage';
@NgModule({
declarations: [AppComponent, DocumentationComponent, TopMenuComponent, LandingComponent, DiscoverComponent],
imports: [
BrowserAnimationsModule,
DocsModule,
FormsModule,
HttpClientModule,
RouterModule.forRoot(routes, { useHash: environment.useHash }),
NgxPageScrollCoreModule.forRoot({ duration: 11, scrollOffset: 70 }),
NgxPageScrollModule,
BsDropdownModule.forRoot(),
BrowserModule.withServerTransition({ appId: 'ngx-bootstrap' })
],
providers: [ThemeStorage, StyleManager, { provide: NgApiDoc, useValue: ngdoc }],
bootstrap: [AppComponent]
})
export class AppModule {}
SimpleScrollComponent,
NestedScrollComponent,
TranslatedTargetScrollComponent,
PathologicalTestsComponent,
HorizontalScrollComponent,
RouterScrollComponent,
NamespaceScrollComponent,
DummyCardComponent,
DummyContentComponent,
ScrollDialogComponent,
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
NgxPageScrollCoreModule.forRoot({_logLevel: 3}),
NgxPageScrollModule,
BrowserAnimationsModule,
MatCardModule,
MatButtonModule,
MatCheckboxModule,
MatIconModule,
MatDialogModule,
MatSelectModule,
MatSidenavModule,
MatSnackBarModule,
MatTabsModule,
MatToolbarModule,
MatTooltipModule,
MatChipsModule,
FlexLayoutModule,
],