Skip to content

Commit

Permalink
Changing to use ngAfterViewInit
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauan committed Aug 21, 2017
1 parent a8a1f6d commit 93b781e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class AppComponent {

constructor(private AmCharts: AmChartsService) {}

ngOnInit() {
ngAfterViewInit() {
this.chart = this.AmCharts.makeChart("chartdiv", {
"type": "serial",
"theme": "light",
Expand Down
2 changes: 1 addition & 1 deletion examples/angular-cli/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class AppComponent {
return dataProvider;
}

ngOnInit() {
ngAfterViewInit() {
this.chart = this.AmCharts.makeChart("chartdiv", {
"type": "serial",
"theme": "light",
Expand Down
2 changes: 1 addition & 1 deletion examples/quickstart/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class AppComponent {
return dataProvider;
}

ngOnInit() {
ngAfterViewInit() {
this.chart = this.AmCharts.makeChart("chartdiv", {
"type": "serial",
"theme": "light",
Expand Down

0 comments on commit 93b781e

Please sign in to comment.