UNPKG

ng-onload

Version:

ngOnload directive for allowing callbacks from Angulars Scope to be executed on elements onload event.

17 lines (14 loc) 486 B
<!doctype html> <head> <meta charset="utf-8"> <script src="../bower_components/angular/angular.min.js"></script> <script src="../release/ng-onload.min.js"></script> <script src="test.js"></script> </head> <body> <pre>Super simple test file.</pre> <div ng-app="test" ng-controller="TestController"> <iframe src="index.test.html" ng-onload="helloTest(contentLocation)"></iframe> </div> </body> </html>