vi-angular-on-load

1.0.1 • Public • Published

Angular OnLoad

Description

AngularJS directive for adding a callback function on element load event. When element with the directive is loaded (catches 'load' event), the passed callback function will be called.

Installation

npm install --save vi-angular-on-load

or

bower install vi-angular-on-load

or

yarn add vi-angular-on-load

Register the module into your main app module

angular.module('myApp', ['vivify-ideas.angular-on-load']);

Usage

In the template, use the vi-on-load directive:

HTML

<iframe src="http://www.example.com" vi-on-load="callBackFunctionReference"></iframe>

LICENCE MIT

Package Sidebar

Install

npm i vi-angular-on-load

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vivifyideas