Comments (9)
That's not the best solution but I change in
~nouislider/distribute/nouislider.min.css
directly
from ng2-nouislider.
Check demo, there is custom style example in this line
from ng2-nouislider.
I've tried that and it's not working...
from ng2-nouislider.
Demo is using import. You probably use component styles. In that case, read more at https://angular.io/docs/ts/latest/guide/component-styles.html
from ng2-nouislider.
Using Webpack here. I'm not getting any errors. component has a width but 0 height. I've tried @import in the scss file like in the demo. Also tried using styleUrls
. No luck, same thing. If I manually add height to these components in the dom explorer in chrome I dont' see anything. So, I guess the scss isn't being applied to the component because it's invisible so far
from ng2-nouislider.
Update: I can get the component to show up, styled and working by copying the .css that I'm supposed to @import and paste it into my component's .scss file like so:
::ng-deep {
/* pasted source of ng2-nouislider here */
}
Does that give you any clues as to how I can import it in a nicer way?
from ng2-nouislider.
hey @abcd-ca ,
I had totally same issue and your solution was the only one working. But then I tried to add it into .angular-cli.json as decsribed here: #99
and it started to work.
from ng2-nouislider.
Worked for me too, thanks @martin-razus. Go-teamwork!
from ng2-nouislider.
For me this worked without any import:
/deep/ .noUi-target {
// my custom styles
}
from ng2-nouislider.
Related Issues (20)
- suddenly started having error TS2305: Module '"../../node_modules/ng2-nouislider/ng2-nouislider"' has no exported member 'NouisliderModule'. HOT 4
- How to find which handle is being dragged in custom event? HOT 2
- Return all parameters in event HOT 2
- Materialize design
- Component does not work with formControlName attribute HOT 3
- Error when setting start with the value of a variable. HOT 1
- Angular 9 support HOT 1
- Angular Build WARNING - depends on 'nouislider'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies HOT 4
- Slider snaps on manually setting a value between steps HOT 3
- TypeError: Cannot read property 'from' of undefined at NouisliderComponent.toValues HOT 1
- Potentially not compatible with Ivy warning HOT 1
- ng2-nouislider vertical, direction rtl issue HOT 1
- Add handles dynamically in reactive form
- Keyboard support handle issue when multi connect option is used. HOT 1
- The website is blocked in India HOT 1
- Angualr 12/13/14 new lib format HOT 1
- is this lib dead ? HOT 2
- Angular 14 [(ngModel])
- NouisliderModule does not have a module def (ɵmod property) for Angular16 HOT 1
- Disabled attribute doesnt work as expected HOT 1
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 ng2-nouislider.