You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I'm sorry for my English)
I am trying to use ifVisible in angular 7 but I can't use it, can someone help me please?
What am I missing or what do I fail?
TypeError: ifvisible_src_ifvisible_js__WEBPACK_IMPORTED_MODULE_6 __. IfVisible is not a constructor
TypeError: ifvisible_src_ifvisible_js__WEBPACK_IMPORTED_MODULE_6 __. IfVisible is not a constructor
The text was updated successfully, but these errors were encountered:
@CarlosMal Theres is no needs to add it to angular.json. You can use it in Angular like this.
import*asifvisiblefrom'ifvisible.js';ifvisible.on('idle',()=>{console.log('it is idle now ...');});ifvisible.on('wakeup',()=>{console.log('it wakes up!');});
(I'm sorry for my English)
I am trying to use ifVisible in angular 7 but I can't use it, can someone help me please?
What am I missing or what do I fail?
install it with npm and ifvisible,
in my package.json
"ifvisible": "1.1.0",
in my angular.json
my .ts
using it in a function:
I get this error:
TypeError: ifvisible_src_ifvisible_js__WEBPACK_IMPORTED_MODULE_6 __. IfVisible is not a constructor
TypeError: ifvisible_src_ifvisible_js__WEBPACK_IMPORTED_MODULE_6 __. IfVisible is not a constructor
The text was updated successfully, but these errors were encountered: