2017-01-26 2 views
0

次のリリースのangular2には、剣道のスプレッドシートがありますか、またはエクスポートがグリッドに適していますか? Angle1バージョンを使用しており、アップグレードしたいので、私たちはangular2でスプレッドシート版を使いたいと思っています。これは可能ですか?angular2は剣道スプレッドシートを持っていますか?

グリッド例えばClick here

スプレッドシートの例 https://demos.telerik.com/kendo-ui/spreadsheet/index

angular2アプリケーションにスプレッドシートを組み込む方法がありませんか?あなたが別のscript.thisでメソッドにアクセスしたい場合、それは、問題で、使用している角度のバージョンをdoesntの

+0

内タイプanyvariableを作成アクセスするためには、SOへようこそ。ツール、ライブラリ、チュートリアルへの参照についての質問は、あまりにも控えめです。他のチャンネルでお尋ねください。 –

答えて

0

あなたはangular2

<script src="js/jquery.min.js"></script> 
<script src="js/jszip.min.js"></script> 
<script src="js/kendo.all.min.js"></script> 

あなたのindex.htmlにし、これらのスクリプトを含んを使用してそれを行うべきかでありますこれらはdeclareを使用して、あなたのservice

import { Injectable } from '@angular/core'; 

declare graphs:any; 
//graphs represents the scripts you have imported from index.html 

@Injectable() 
export class GraphService { 

    constructor() { } 

    dosomethingWithgraphs(){ 
    graphs.methods()//accessing its methods 
    graphs.properties//accessing its properties 
    } 
} 
関連する問題