
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
angular-swing
Advanced tools
AngularJS directive for Swing: A swipeable cards interface. The swipe-left/swipe-right for yes/no input. As seen in apps like Jelly and Tinder.
AngularJS directive for Swing: A swipeable cards interface. The swipe-left/swipe-right for yes/no input. As seen in apps like Jelly and Tinder, and many others.
Include ./dist/swing.js
.
Prepare a Swing stack:
<ul swing-stack></ul>
Add a Card to the Swing stack:
<ul swing-stack>
<li swing-card></li>
</ul>
Attach event listeners to the instance of Card:
<ul swing-stack>
<li
swing-card
swing-on-throwout="console.log(eventName, eventObject)"
swing-on-throwoutleft="console.log(eventName, eventObject)"
swing-on-throwoutright="console.log(eventName, eventObject)"
swing-on-throwin="console.log(eventName, eventObject)"
swing-on-dragstart="console.log(eventName, eventObject)"
swing-on-dragmove="console.log(eventName, eventObject)"
swing-on-dragend="console.log(eventName, eventObject)"
></li>
</ul>
There are more examples that using the standalone Swing.
The code for all of the examples is in the ./examples/ folder.
Raise an issue if you are missing an example.
Swing Documentation for the Events.
Swing events translate to the following attributes in the AngularJS directive:
Name | Description |
---|---|
throwout | swing-on-throwout |
throwoutleft | swing-on-throwoutleft |
throwoutright | swing-on-throwoutright |
throwin | swing-on-throwin |
dragstart | swing-on-dragstart |
dragmove | swing-on-dragmove |
dragend | swing-on-dragend |
Event listener expression can use eventName
and eventObject
parameters.
Swing Documentation for the Event Object.
Using Bower:
bower install angular-swing
Using NPM:
npm install angular-swing
FAQs
AngularJS directive for Swing: A swipeable cards interface. The swipe-left/swipe-right for yes/no input. As seen in apps like Jelly and Tinder.
The npm package angular-swing receives a total of 6 weekly downloads. As such, angular-swing popularity was classified as not popular.
We found that angular-swing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.