Git Product home page Git Product logo

ng2-slide-down's People

Contributors

maxfahl avatar

Forkers

najky

ng2-slide-down's Issues

Accordion

Multiple elements with the slide-down directive in a list could be chained together to create an accordion list.

Persist state in localstorage

A slide-down directive should be configurable so that its visible state can be persisted in localstorage and restored on page reload.

Implementation detail:

Add an [slide-down-persist]="string" input. The input value will be used as the key for storing the visible value for this element in localstorage.

ngOnInit will then check if the value of this input is set. If so, load the stored value for that key from localstorage and set the state of the directive.

Play nice with templates?

I'm using [slide-down] to open some sections, but I just realised that it doesn't play well with templates and change detection in that if it's not opened the content is still rendered, just not shown. Any way to make this act the same way as a *ngIf where the content of the sub-template is not rendered?

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.