Forum Discussion
At the end of this multiselect angular.js lib, you should see
)}}}}])}(angular);
Maybe change (angular) to (LITHIUM.Angular) ? and see if it works.
I am not sure it is LITHIUM.angular or LITHIUM.Angular 🙂 You can try it out.
Thanks, peterlu,
I have added "LITHIUM.angular" at the last in the external plugin script but still, I am getting issues as below.
Error: Uncaught TypeError: Cannot read property 'module' of undefined
I have attached the error screenshot.
Could you please guide us to resolve this issue?
- peterlu4 years agoChampion
guptak13 You can view the page source, to check the ordering of the script loading. Since LiaAddScript prints the JS code at the very end of the page source, so you need to include your library code in Khoros way.
You can try to copy the angularjs-dropdown-multiselect.min.js code, and paste it into the LiaAddScript section. Also you need to modify the angularjs-dropdown-multiselect.min.js a bit to make it work. Also check the LITHIUM.angular version as well to make sure your plugin is compatible.
It is the same problem when you try to include a 3rd party jQuery plugin.
if worse comes to worst, you can try React.js
Related Content
- 7 years ago
- 9 years ago