Browse Source

refactoring

pull/5906/head
David Requeno 2 months ago
parent
commit
7f3b2b393a
  1. 8
      apps/client/src/app/app.component.ts
  2. 8
      apps/client/src/main.ts

8
apps/client/src/app/app.component.ts

@ -42,13 +42,13 @@ import { TokenStorageService } from './services/token-storage.service';
import { UserService } from './services/user/user.service'; import { UserService } from './services/user/user.service';
@Component({ @Component({
selector: 'gf-root',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './app.component.html', imports: [GfFooterComponent, GfHeaderComponent, RouterLink, RouterOutlet],
selector: 'gf-root',
styleUrls: ['./app.component.scss'], styleUrls: ['./app.component.scss'],
imports: [RouterOutlet, RouterLink, GfHeaderComponent, GfFooterComponent] templateUrl: './app.component.html'
}) })
export class AppComponent implements OnDestroy, OnInit { export class GfAppComponent implements OnDestroy, OnInit {
@HostBinding('class.has-info-message') get getHasMessage() { @HostBinding('class.has-info-message') get getHasMessage() {
return this.hasInfoMessage; return this.hasInfoMessage;
} }

8
apps/client/src/main.ts

@ -29,7 +29,7 @@ import { NgxStripeModule, STRIPE_PUBLISHABLE_KEY } from 'ngx-stripe';
import { CustomDateAdapter } from './app/adapter/custom-date-adapter'; import { CustomDateAdapter } from './app/adapter/custom-date-adapter';
import { DateFormats } from './app/adapter/date-formats'; import { DateFormats } from './app/adapter/date-formats';
import { AppRoutingModule } from './app/app-routing.module'; import { AppRoutingModule } from './app/app-routing.module';
import { AppComponent } from './app/app.component'; import { GfAppComponent } from './app/app.component';
import { authInterceptorProviders } from './app/core/auth.interceptor'; import { authInterceptorProviders } from './app/core/auth.interceptor';
import { httpResponseInterceptorProviders } from './app/core/http-response.interceptor'; import { httpResponseInterceptorProviders } from './app/core/http-response.interceptor';
import { LanguageService } from './app/core/language.service'; import { LanguageService } from './app/core/language.service';
@ -56,7 +56,7 @@ import { environment } from './environments/environment';
enableProdMode(); enableProdMode();
} }
await bootstrapApplication(AppComponent, { await bootstrapApplication(GfAppComponent, {
providers: [ providers: [
{ provide: LOCALE_ID, useValue: locale }, { provide: LOCALE_ID, useValue: locale },
authInterceptorProviders, authInterceptorProviders,
@ -79,6 +79,7 @@ import { environment } from './environments/environment';
importProvidersFrom( importProvidersFrom(
AppRoutingModule, AppRoutingModule,
BrowserAnimationsModule, BrowserAnimationsModule,
GfNotificationModule,
MatAutocompleteModule, MatAutocompleteModule,
MatChipsModule, MatChipsModule,
MatNativeDateModule, MatNativeDateModule,
@ -88,8 +89,7 @@ import { environment } from './environments/environment';
ServiceWorkerModule.register('ngsw-worker.js', { ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production, enabled: environment.production,
registrationStrategy: 'registerImmediately' registrationStrategy: 'registerImmediately'
}), })
GfNotificationModule
) )
] ]
}); });

Loading…
Cancel
Save