参考:https://www.cnblogs.com/zhuzhenwei918/p/6853258.html
https://www.jianshu.com/p/0b0b9364f967
https://blog.csdn.net/kongjiea/article/details/43016085
使用nz-carousel的时候,报错:
core.js:13611 The "swipeleft" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.
core.js:13611 The "swiperight" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.
core.js:13611 The "pan" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.
所以使用hammerjs,在my-project/src/polyfills.ts 中:
import 'hammerjs';