Comments (3)
I have no idea how Webpack works or what is required for this library to be compatible with Webpack. I'll research when I have some spare time.
from angular-multi-select.
I think I had this problem too considering my source code says 'angular-multi-select/dist/prod/angular-multi-select' instead of 'angular-multi-select'.
So let me explain the trick that I used: inside of the node_module folder you'll find an angular-multi-select folder if it's installed correctly. Normally, that would be enough. But I don't know which configuration file makes it work. However, I found a different solution after playing around a bit. While messing around, I discovered that webpack was perfectly happy with calling that folder in node_module a base folder! So with a bit of folder browsing, I figured out the path to the distributable starting from angular-multi-select...and voila:
require('angular-multi-select/dist/prod/angular-multi-select')
node_modules
|
|
angular-multi-select
|
|
dist
|
|
prod
|
|
**angular-multi-select.js**
angular-multi-select.min.js
The above should work.
This is pointing at the unminimized source code. You can replace it with 'angular-multi-select/dist/prod/angular-multi-select.min' if you want to include the uglified version. I figure since webpack can be configured to uglify after the fact, it's perfectly fine using the uncompressed version.
from angular-multi-select.
@TamaBaka 👍 Thank you very much for the long and interesting reply 😜
from angular-multi-select.
Related Issues (20)
- Cannot select more than one searched items HOT 3
- Allow hidden items in the input-model HOT 2
- Can't get data in output HOT 1
- ReferenceError: loki is not defined HOT 2
- Setting ng-model $dirty when value changes HOT 1
- Translate filter clashes with gettext filter HOT 3
- selected values not getting inserted in output_data HOT 2
- Select parent only HOT 9
- using multi select with webpack( vendor.js) loki is not defined HOT 1
- if two values have same id , one of the id is getting overwritten HOT 1
- toggle-checked-state-on-label-click mod collapses drop-down on uncheck of leaf node.
- Is angular-multi-select available for angular 2+ version? HOT 1
- Output-model not getting generated, when <angular-multi-select> is placed inside ng-repeat for dynamic combo box
- Search and select all doesn't work
- Placeholder in items container when input model is empty
- Cannot find about case insensitive search HOT 9
- Opening one AMS instance doesn't close others
- Deep $watch inputModel
- Artifact not available through Bower HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-multi-select.