Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule, DoBootstrap } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { ClarityModule } from '@clr/angular';
import { KeycloakAngularModule, KeycloakService } from 'keycloak-angular';
import { AppComponent, HeroesComponent, HomeComponent } from './components';
import { HeroesService } from './services';
import { AppRoutingModule } from './app-routing.module';
import { environment } from '../environments/environment';
let keycloakService: KeycloakService = new KeycloakService();
@NgModule({
declarations: [AppComponent, HeroesComponent, HomeComponent],
imports: [
BrowserModule,
HttpClientModule,
ClarityModule,
KeycloakAngularModule,
AppRoutingModule
],
providers: [
HeroesService,
{
provide: KeycloakService,
useValue: keycloakService
}