JSPM

  • Created
  • Published
  • Downloads 21336
  • Score
    100M100P100Q140084F
  • License MIT

Allows us to check if an element is within the browsers visual viewport

Package Exports

  • ng-in-viewport

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ng-in-viewport) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ng-in-viewport

Allows us to check if an element is within the browsers visual viewport

Usage

  <div in-viewport (inViewport)="action($event)">
    Lorem ipsum dolor sit amet augue. Sed quam et odio.
  </div>
export class ExampleComponent {
  action(event) {
    console.log(event);
  }
}

License

MIT