webpack - angular-cli 3rd Party Library - jquery.floatThead 2.0.3 -
i want use floatthead in angular2 app. have install jquery global library.
in angular-cli.json
"scripts": ["../node_modules/jquery/dist/jquery.min.js", "../node_modules/bootstrap/dist/js/bootstrap.min.js", "../node_modules/ngx-rating/ngx-rating.pure.amd.js", "../node_modules/bootstrap-select/dist/js/bootstrap-select.min.js", "../node_modules/floatthead/dist/jquery.floatthead.min.js" ],
in component have imported both jquery , floatthead follows
import * $ 'jquery'; import * floatthead 'floatthead'; ... $('card-list-table').floatthead({top:110, responsivecontainer: function($table){ return $table.closest(".table-responsive"); } });
there no complitaion issue getting runtime error , plugin doesn't work
error typeerror: __webpack_imported_module_5_jquery__(...).floatthead not function @ customerlistcomponent.webpackjsonp.../../../../../src/app/
it looks have imported jquery globally has issue jquery plugins getting loaded.
can please suggest whats wrong in scenario.
Comments
Post a Comment