Similar:
export class Hero extends GoogleCharts implements OnInit {...
If GoogleCharts already implements OnInit, you must call super.ngOnInit();ngOnInit before doing other things in your method.
Like this:
interface OnInit {
ngOnInit: () => void;
}
class GoogleCharts implements OnInit{
ngOnInit() {
}
}
class Hero extends GoogleCharts implements OnInit{
ngOnInit() {
super.ngOnInit();
}
}
source
share