New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-in-viewport

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-in-viewport

Directives to check if a DOM element is in a specified viewport

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64
decreased by-54.93%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub version Bower version NPM version

Build Status

angular-in-viewport

Set of directives handling events when a DOM element enters or leaves a viewport

viewport

Directive (attribute) specifying the DOM element which should be used as viewport

viewport-enter

Directive (attribute) specifying a DOM element which should be watched. When the element enters the viewport the value of the attribute will be evaled.

viewport-leave

Directive (attribute) specifying a DOM element which should be watched. When the element leaves the viewport the value of the attribute will be evaled.

#Compatibility This plugin has been tested with Angular 1.2 and 1.3

#Example

<ul style="width: 200px; height: 200px" viewport>
  <li ng-repeat="item in items" style="width: 200px; height: 200px" viewport-leave="item.visible = false" viewport-enter="item.visible = true">
</ul>

License

This Angular module has been published under the MIT license

Keywords

FAQs

Package last updated on 25 Nov 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc