I have a list of file-components. In which I am using this own-carousel. Each file component has some pages to display which will come in the same carousel component. There are number of file components. The problem is whenever any file component gets added, this error comes:
core.es5.js:1020 ERROR TypeError: Cannot read property 'trigger' of undefined
at OwlChild.webpackJsonp../node_modules/ngx-owl-carousel/src/owl-child.component.js.OwlChild.trigger (owl-child.component.js:23)
at OwlCarousel.webpackJsonp../node_modules/ngx-owl-carousel/src/owl-carousel.component.js.OwlCarousel.trigger (owl-carousel.component.js:64)
at selections-document.component.ts:44
at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:425)
at Object.onInvokeTask (core.es5.js:3881)
at ZoneDelegate.webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:192)
at webpackJsonp../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:499)
at ZoneTask.invoke (zone.js:488)
at timer (zone.js:1896)
I am refreshing all the carousels when a file-component gets added.
I have a list of file-components. In which I am using this own-carousel. Each file component has some pages to display which will come in the same carousel component. There are number of file components. The problem is whenever any file component gets added, this error comes:
I am refreshing all the carousels when a file-component gets added.