File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11import { CommonModule } from '@angular/common' ;
22import { Component } from '@angular/core' ;
33import { FormsModule } from '@angular/forms' ;
4- import { DashboardCoreModule , DashboardEditorModule } from '@hypertrace/hyperdash-angular' ;
4+ import { DashboardCoreModule , DashboardEditorModule , DefaultConfigurationService } from '@hypertrace/hyperdash-angular' ;
55import { ExampleDashModule } from '../example-dash/example-dash.module' ;
66import { GraphQlDataSourceModule } from '../example-dash/graphql-data-source.module' ;
77
@@ -20,4 +20,8 @@ import { GraphQlDataSourceModule } from '../example-dash/graphql-data-source.mod
2020} )
2121export class AppComponent {
2222 public readonly title : string = 'hyperdash-angular' ;
23+
24+ public constructor ( defaultConfigurationService : DefaultConfigurationService ) {
25+ defaultConfigurationService . configure ( ) ;
26+ }
2327}
Original file line number Diff line number Diff line change 1- import { enableProdMode , provideZonelessChangeDetection } from '@angular/core' ;
1+ import { enableProdMode , importProvidersFrom , provideZonelessChangeDetection } from '@angular/core' ;
2+ import { provideHttpClient } from '@angular/common/http' ;
23
34import { environment } from './environments/environment' ;
45import { bootstrapApplication } from '@angular/platform-browser' ;
56import { AppComponent } from './app/app.component' ;
7+ import { DashboardCoreModule } from '@hypertrace/hyperdash-angular' ;
68
79if ( environment . production ) {
810 enableProdMode ( ) ;
911}
1012
1113bootstrapApplication ( AppComponent , {
12- providers : [ provideZonelessChangeDetection ( ) ]
14+ providers : [ provideZonelessChangeDetection ( ) , provideHttpClient ( ) , importProvidersFrom ( DashboardCoreModule ) ]
1315} ) . catch ( err => {
1416 console . error ( err ) ;
1517} ) ;
You can’t perform that action at this time.
0 commit comments