Ng2-select: How to use this ng2-select in angular2 cli based project?

Created on 11 Feb 2017  路  2Comments  路  Source: valor-software/ng2-select

Most helpful comment

@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"]

All 2 comments

@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"]

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sharok picture sharok  路  4Comments

Kiwi15 picture Kiwi15  路  4Comments

thanhngvpt picture thanhngvpt  路  5Comments

fdu-axiometrics picture fdu-axiometrics  路  5Comments

newerik picture newerik  路  5Comments