首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >带有角度产生警告的wow.js

带有角度产生警告的wow.js
EN

Stack Overflow用户
提问于 2018-07-03 19:38:30
回答 1查看 833关注 0票数 0

我有一个使用wow.js的角元件。

我用npm安装了npm并通过angular.json连接了它。

我所有的东西都正常工作,但是我在控制台里收到了两个警告:

MutationObserver is not supported by your browser.

WOW.js cannot detect dom mutations, please call .sync() after loading new content.

以前有人遇到过这个问题吗?

因为这些都是警告,所以这个项目不会中断,所以修复这个问题并不重要,但是最好让这些警告消失。

下面是我的compnent.ts文件,只显示必要的部分:

代码语言:javascript
复制
import { AfterViewInit, Component, OnInit } from '@angular/core';
import { WOW } from 'wowjs/dist/wow.min';

export class AboutComponent implements OnInit, AfterViewInit {
  wow = new WOW();

  ngAfterViewInit() {
    this.wow.init();
  }
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-07-03 20:24:09

试试这个:

wow = new WOW( { live: false});

来自https://github.com/matthieua/WOW/issues/166

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51161823

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档