{"id":20365682,"url":"https://github.com/ddjain/ng-load","last_synced_at":"2025-04-12T04:47:30.723Z","repository":{"id":57178831,"uuid":"177266943","full_name":"ddjain/ng-load","owner":"ddjain","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-24T03:15:14.000Z","size":48,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T04:46:51.810Z","etag":null,"topics":["angular","angularjs","customdirectives","customdiretciveexample","directive","javascript","onload"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddjain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ddjain"],"ko_fi":"ddjain","liberapay":"ddjain","issuehunt":"ddjain","custom":["8421761442@upi"]}},"created_at":"2019-03-23T09:01:12.000Z","updated_at":"2022-08-29T11:20:38.000Z","dependencies_parsed_at":"2022-09-09T17:30:27.718Z","dependency_job_id":null,"html_url":"https://github.com/ddjain/ng-load","commit_stats":null,"previous_names":["darshu8/ng-load"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2Fng-load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2Fng-load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2Fng-load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddjain%2Fng-load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddjain","download_url":"https://codeload.github.com/ddjain/ng-load/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519470,"owners_count":21117757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angularjs","customdirectives","customdiretciveexample","directive","javascript","onload"],"created_at":"2024-11-15T00:19:34.227Z","updated_at":"2025-04-12T04:47:30.669Z","avatar_url":"https://github.com/ddjain.png","language":"JavaScript","readme":"# ng-load\nng-load is implementation of javascript's on-load event in angular js.\n\n## About\nYou may wish to use callback function on DOM is loaded same like onload event in javascript. ng-load will provide custom callback once DOM is loaded. Implementation of OnLoad event of javascript in Angular JS. Internally ng-load calls onload event so this directive can work with almost every DOM element like div, a, iframe, body, image etc.\n\n## Requirements\n* Angular js.\n\n## Getting Started\nFiles to Download\ninstall them from npm by entering the command ```npm i angular-ng-load```.\n\nInclude `angular-load.min.js` after `angular.js`.\n\nexample:\n\nJS\n```\n\t// include the `ngLoad` module\n\tvar app = angular.module('myApp', ['ngLoad']);\n\tapp.controller('myCtrl', function($scope) {\n\t\t$scope.testCallbackFunction = function() {\n\t\t  //TODO : Things to do once Element is loaded\n\t\t};\n\n\t});  \n \n```\n\nHTML \n\n```\n  \u003cdiv ng-app='myApp' ng-controller='myCtrl'\u003e \n      \u003ciframe src=\"test.html\" ng-load callback=\"testCallbackFunction()\"\u003e  \n  \u003c/div\u003e\n```  \n ## Contributing\n \nContributors are welcome. I am interested in suggestions for new features or improvements. Please get in touch.\n","funding_links":["https://github.com/sponsors/ddjain","https://ko-fi.com/ddjain","https://liberapay.com/ddjain","https://issuehunt.io/r/ddjain","8421761442@upi"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddjain%2Fng-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddjain%2Fng-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddjain%2Fng-load/lists"}