diff --git a/angular.json b/angular.json index 5d52b4e..33130f0 100644 --- a/angular.json +++ b/angular.json @@ -61,10 +61,10 @@ "builder": "@angular-devkit/build-angular:dev-server", "configurations": { "production": { - "browserTarget": "myangularproject:build:production" + "buildTarget": "myangularproject:build:production" }, "development": { - "browserTarget": "myangularproject:build:development" + "buildTarget": "myangularproject:build:development" } }, "defaultConfiguration": "development" diff --git a/package.json b/package.json index 2cab028..500257f 100644 --- a/package.json +++ b/package.json @@ -10,24 +10,24 @@ }, "private": true, "dependencies": { - "@angular/animations": "^16.1.0", - "@angular/common": "^16.1.0", - "@angular/compiler": "^16.1.0", - "@angular/core": "^16.1.0", - "@angular/forms": "^16.1.0", - "@angular/platform-browser": "^16.1.0", - "@angular/platform-browser-dynamic": "^16.1.0", - "@angular/router": "^16.1.0", - "@syncfusion/ej2-angular-charts": "^22.1.38", + "@angular/animations": "^19.2.20", + "@angular/common": "^19.2.20", + "@angular/compiler": "^19.2.20", + "@angular/core": "^19.2.20", + "@angular/forms": "^19.2.20", + "@angular/platform-browser": "^19.2.20", + "@angular/platform-browser-dynamic": "^19.2.20", + "@angular/router": "^19.2.20", + "@syncfusion/ej2-angular-charts": "^22.2.12", + "@syncfusion/ej2-material-theme": "~22.1.38", "rxjs": "~7.8.0", "tslib": "^2.3.0", - "zone.js": "~0.13.0", - "@syncfusion/ej2-material-theme": "~22.1.38" + "zone.js": "~0.15.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^16.1.4", - "@angular/cli": "~16.1.4", - "@angular/compiler-cli": "^16.1.0", + "@angular-devkit/build-angular": "^19.2.20", + "@angular/cli": "^19.2.20", + "@angular/compiler-cli": "^19.2.20", "@types/jasmine": "~4.3.0", "jasmine-core": "~4.6.0", "karma": "~6.4.0", @@ -35,6 +35,6 @@ "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", - "typescript": "~5.1.3" + "typescript": "~5.8.3" } -} \ No newline at end of file +} diff --git a/src/app/app.component.ts b/src/app/app.component.ts index fd7d3fe..98f6856 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,7 +1,10 @@ import { Component } from '@angular/core'; +import { BulletChartModule } from '@syncfusion/ej2-angular-charts'; @Component({ selector: 'app-root', + standalone: true, + imports: [BulletChartModule], // ✅ IMPORTANT templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) diff --git a/src/app/app.module.ts b/src/app/app.module.ts deleted file mode 100644 index 529db78..0000000 --- a/src/app/app.module.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; - -import { AppComponent } from './app.component'; -import { BulletChartModule, BulletChartLegendService, BulletTooltipService } from '@syncfusion/ej2-angular-charts'; - -@NgModule({ - declarations: [ - AppComponent - ], - imports: [ - BrowserModule, - BulletChartModule - ], - providers: [BulletChartLegendService, BulletTooltipService], - bootstrap: [AppComponent] -}) -export class AppModule { } diff --git a/src/main.ts b/src/main.ts index 357f906..c9d9938 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,10 @@ -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; -import { registerLicense } from '@syncfusion/ej2-base'; -import { AppModule } from './app/app.module'; +import { bootstrapApplication } from '@angular/platform-browser'; +import { AppComponent } from './app/app.component'; +import { BulletChartLegendService, BulletTooltipService } from '@syncfusion/ej2-angular-charts'; -registerLicense("ORg4AjUWIQA/Gnt2V1hhQlJAfVddXnxLflF1VWZTe1Z6d1dWESFaRnZdQV1kSHpTdUBkWX9dd31c"); -platformBrowserDynamic().bootstrapModule(AppModule) - .catch(err => console.error(err)); +bootstrapApplication(AppComponent, { + providers: [ + BulletChartLegendService, + BulletTooltipService + ] +}); \ No newline at end of file