valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 587 forks source link

How to use this ng2-select in angular2 cli based project? #652

Open nitishkumarnitc opened 7 years ago

RbkGh commented 7 years ago

@nitishkumarnitc 1.npm i ng2-select --save 2.copy ng2-select.css from here https://github.com/valor-software/ng2-select/blob/development/demo/src/assets/css/ng2-select.css to the src/assets/css/ directory in your project. 3.and add it to your angular-cli.json like this,if needed. "styles": ["../src/assets/css/ng2-select.css"]

rodneyjoyce commented 7 years ago

Are you sure you have to do step 3 and 4? I could not find the CSS in the npm package so I left it out and it seems to work fine - I thought it was include in the bundle