maxfahl / ng2-slide-down Goto Github PK
View Code? Open in Web Editor NEWSlide down directive for angular 2+
Slide down directive for angular 2+
Multiple elements with the slide-down directive in a list could be chained together to create an accordion list.
Add a way to configure the default options for all slide-down directives in a project.
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.