Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular Jssor滑块在角度4_Angular_Jssor - Fatal编程技术网

Angular Jssor滑块在角度4

Angular Jssor滑块在角度4,angular,jssor,Angular,Jssor,我尝试在angular 4项目中使用jssor滑块,我已经安装了jssor,但是当我尝试在app.component.html中使用jssor滑块时,出现了错误 ERROR in src/app/app.component.ts(17,30): error TS2552: Cannot find name '$JssorSlider$'. Did you mean 'jssor_1_slider'? 我的代码是 import { Component, OnInit, AfterViewInit

我尝试在angular 4项目中使用jssor滑块,我已经安装了jssor,但是当我尝试在app.component.html中使用jssor滑块时,出现了错误

ERROR in src/app/app.component.ts(17,30): error TS2552: Cannot find name '$JssorSlider$'. Did you mean 'jssor_1_slider'?
我的代码是

import { Component, OnInit, AfterViewInit } from '@angular/core';
   import * as $ from 'jquery';
   import * as $$ from 'jssor-slider';
   declare var jssor_1_slider_init: any;

  @Component({
     selector: 'app-root',
     templateUrl: './app.component.html',
     styleUrls: ['./app.component.css']
     })
    export class AppComponent implements OnInit, AfterViewInit {
      title = 'client';
      constructor() { }
      ngOnInit() {
        var options = { $AutoPlay: 1 };
        var jssor_1_slider = new $JssorSlider$("jssor_1", options);
      }
      ngAfterViewInit() {
        jssor_1_slider_init();
      }
    }

我尝试过从“jssor slider”导入{$JSSORSSlider$};但同样的错误请看下面的问题,希望它能有所帮助,