错误信息:
ERROR in src/app/app.component.ts(34,8): error TS2304: Cannot find name 'WOW'.
解决办法:
declare var WOW: any;
参考文件:
/**
* 版权所有(C)2018,西安大华时代网络科技有限公司。保留所有权利。
*/
import { Component, OnInit } from '@angular/core';
//import * as $ from 'jquery';
declare var $:any;
declare var WOW: any;
/**
* 应用组件
*
* @author 刘宏强
*/
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
/**
* 构造函数
*/
constructor() {
}
/**
* 初始化方法
*/
ngOnInit() {
// Initiate the wowjs animation library
new WOW().init();
}
}