Giter Site home page Giter Site logo

Comments (5)

jagmal avatar jagmal commented on August 17, 2024

I have found a way around by emitting an event on window resize inside my controller and watching the same event using "slimscrollListenTo" attr. Even there, I had a problem on angular 1.3 where I had to use "slimscroll-listen-to" as attr in the html using

was not working because $attr.slimscrollListenTo was not available inside directive. Instead, $attr.slimscrolllistento was being passed.

Hope it helps others.

from angular-slimscroll.

ziscloud avatar ziscloud commented on August 17, 2024

@jagmal thanks for your share. Currently the $attr.slimscrollListenTo is processed in our directive, but you pass the attribute value use 'slimscroll-listen-to', angular removes the dashs between the words, so in the directive $attr.slimscrolllistento is passed in.

from angular-slimscroll.

jagmal avatar jagmal commented on August 17, 2024

Thanks for fixing this!

from angular-slimscroll.

immortalcy avatar immortalcy commented on August 17, 2024

could you provide a working example on this matter?

from angular-slimscroll.

nicolaib avatar nicolaib commented on August 17, 2024

I'm also looking for an example. Can anyone show how to add this attribute to the HTML (I suppose)?
Thanks.

from angular-slimscroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.