2016-12-09 64 views

回答

1

需要在組件添加語法

define var AmCharts:any; 

爲例

import { Component } from '@angular/core'; 
import { CustomComponent } from './customCompo'; 
define var AmCharts:any; 
@Component({ 
    selector: 'my-app', 
    templateUrl: 'app/app.html', 
}) 
export class AppComponent { name = 'Angular'; } 
+0

其實這GIT解決,問題是無法找到NameSpace Amcharts,我認爲它的聲明,而不是定義 – sudhir

+0

不準確嗎? – anshuVersatile