UNPKG

ng-onload

Version:

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

9 lines (8 loc) 262 B
// Declaring the stub application to inject our directive into angular .module("test", [ "ngOnload" ]) .controller("TestController", function($scope) { $scope.helloTest = function(contentLocation) { console.log("Hello world!", contentLocation); }; });