refactor: update .gitignore and optimize Angular config (!7)
Reviewed-on: https://git.simonis.lol/projects/casino/pulls/7 Reviewed-by: Constantin Simonis <constantin@simonis.lol> Reviewed-by: Huy <ptran@noreply@simonis.lol> Co-authored-by: Jan-Marlon Leibl <jleibl@proton.me> Co-committed-by: Jan-Marlon Leibl <jleibl@proton.me>
This commit is contained in:
parent
f6f52e2724
commit
7fe8f276cf
6 changed files with 6 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterOutlet } from '@angular/router';
|
||||
import { KeycloakAngularModule } from 'keycloak-angular';
|
||||
|
@ -10,6 +10,7 @@ import { KeycloakAngularModule } from 'keycloak-angular';
|
|||
providers: [],
|
||||
templateUrl: './app.component.html',
|
||||
styleUrl: './app.component.css',
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class AppComponent {
|
||||
constructor() {}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { APP_INITIALIZER, ApplicationConfig } from '@angular/core';
|
||||
import { APP_INITIALIZER, ApplicationConfig, provideExperimentalZonelessChangeDetection } from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
|
@ -41,6 +41,7 @@ export const appConfig: ApplicationConfig = {
|
|||
},
|
||||
KeycloakService,
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
provideExperimentalZonelessChangeDetection(),
|
||||
{
|
||||
provide: HTTP_INTERCEPTORS,
|
||||
useClass: KeycloakBearerInterceptor,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue