amcharts / amcharts3-angular2

Official Angular 2 plugin for amCharts V3
99 stars 35 forks source link

Feature Request - Angular 17 upgrade #184

Closed beshad closed 10 months ago

beshad commented 11 months ago

any idea if/when this will be supporting Angular 17? many thanks

Pauan commented 10 months ago

Thanks for the report. Version 3.0.5 now has support for Angular 17.

Instead of using app.module.ts, you now import the amCharts module inside of app.component.ts:

import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { AmChart, AmChartsService, AmChartsModule } from '@amcharts/amcharts3-angular';

@Component({
  selector: 'app-root',
  standalone: true,
  // Add the import here
  imports: [CommonModule, RouterOutlet, AmChartsModule],
  templateUrl: './app.component.html',
  styleUrl: './app.component.css'
})
export class AppComponent {