Comments (4)
You can use this directive: <div class="scroll-body" slimscroll="{height: 150}">
from angular-slimscroll.
Sorry, I did not copy the syntax I used correctly.
I used your syntax:
{{ somestuffhere || 'nuttin here' }}
and I'm still getting the error thrown:
TypeError: undefined is not a function
at refresh (http://localhost:9000/assets/javascripts/app/directives.js:249:30)
at init (http://localhost:9000/assets/javascripts/app/directives.js:254:21)
at link (http://localhost:9000/assets/javascripts/app/directives.js:278:17)
at nodeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6736:13)
at compositeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6130:13)
at compositeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6133:13)
at compositeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6133:13)
at compositeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6133:13)
at nodeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6730:24)
at compositeLinkFn (http://localhost:9000/assets/javascripts/lib/angular/angular-1.2.27.js:6130:13)
from angular-slimscroll.
Got it working. Two things: First: stupid mistake on my part. Needed to download and include the jquery.slimscroll.min.js file from github.com/rochal/jQuery-slimScroll. Second: The correct syntax to use is: div class="scroll-body" slimscroll="{height: '250px'}" (single quotes required around the value).
from angular-slimscroll.
i want to give my custom style for slim scroll i have used div class="scroll-body" slimscroll="{height: '250px'}"
but it is not working it is using its default height
from angular-slimscroll.
Related Issues (20)
- Update slimscroll dependency to 1.3.3 HOT 1
- Add bower installation instructions HOT 2
- Disable angular-slimscroll HOT 1
- Use slimscroll in combination with ui router HOT 8
- Double slimscrolls HOT 8
- double scrollbar added HOT 6
- Update scrollbar after pushing elements HOT 2
- Refresh/Update doesn't seem to be fully working. HOT 2
- Publishing to NPM HOT 1
- Options do not work HOT 4
- When window resize, Height auto Issue HOT 1
- How can i bind event
- Add slimscroll-watch attribute to documentation HOT 1
- customization is not working HOT 1
- Inner scroll not working HOT 2
- npm package not correct
- start: 'bottom' option does not work. HOT 3
- Hide scrollbar when it isn't need
- allowPageScroll is not working??? 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-slimscroll.