Ich habe versucht, die Soundcloud Javascript SDK soundcloud javascript sdk in meiner ionic 2 App zu verwenden. aber ich weiß nicht, wie ich das SC-Objekt in meinem Servicemodul sichtbar mache. Ich habe die SDK in meinem Index.html wie so Ich versuche, um sicherzustellen, dass das SC-Objekt ist avilable mit th-Modul, aber ich bekomme eine ts Fehler sagen kann nicht mobule SC. Wie benutze ich Soundcloud JavaScript sdk in angular2 Modul
export class SCService {
constructor() {
\t console.log(SC);
}
}
<ion-app></ion-app>
<script src="https://connect.soundcloud.com/sdk/sdk-3.1.2.js"></script>
<!-- cordova.js required for cordova apps -->
<script src="cordova.js"></script>
<!-- Polyfill needed for platforms without Promise and Collection support -->
<script src="build/js/es6-shim.min.js"></script>
<!-- Zone.js and Reflect-metadata -->
<script src="build/js/Reflect.js"></script>
<script src="build/js/zone.js"></script>
<!-- the bundle which is built from the app's source code -->
<script src="build/js/app.bundle.js"></script>