{"id":20940687,"url":"https://github.com/ianmurrays/ngautofocus","last_synced_at":"2025-10-11T21:07:34.805Z","repository":{"id":36025588,"uuid":"40321315","full_name":"ianmurrays/ngAutofocus","owner":"ianmurrays","description":"Makes the autofocus attribute work with angular","archived":false,"fork":false,"pushed_at":"2016-11-10T13:11:53.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-13T10:24:07.396Z","etag":null,"topics":["angular","angularjs"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianmurrays.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-06T18:43:27.000Z","updated_at":"2017-06-09T15:00:49.000Z","dependencies_parsed_at":"2022-08-17T22:35:06.452Z","dependency_job_id":null,"html_url":"https://github.com/ianmurrays/ngAutofocus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ianmurrays/ngAutofocus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2FngAutofocus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2FngAutofocus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2FngAutofocus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2FngAutofocus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianmurrays","download_url":"https://codeload.github.com/ianmurrays/ngAutofocus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianmurrays%2FngAutofocus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008720,"owners_count":26084494,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"],"created_at":"2024-11-18T23:11:27.589Z","updated_at":"2025-10-11T21:07:34.745Z","avatar_url":"https://github.com/ianmurrays.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Autofocus\n\nAn extremely simple directive to autofocus input fields in angular. Due to how views are rendered in angular, the autofocus directive doesn't always work. This directive makes sure fields are focused after being rendered.\n\n## How to use\n\nInstall:\n\n```shell\nbower install --save ngAutofocus\n```\n\nAdd the module to your app:\n\n```javascript\nangular.module('myApp', ['ngAutofocus']);\n```\n\nUse the autofocus attribute like you've always done:\n\n```html\n\u003cinput type=\"text\" ng-model=\"my.model\" autofocus\u003e\n```\n\n## Minimizing\n\nClosure Compiler is used to minimize the code. It is minimized using this command\n\n```bash\nclosure-compiler --js_output_file=angular-autofocus.min.js --compilation_level SIMPLE angular-autofocus.js\n```\n\nAdvanced optimizations are not used because as of now the AngularJS codebase does not support it.\n\n## Issues\n\nPlease file issues using GitHub's issue tracker.\n\n## Contributing\n\nPull requests are more than welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmurrays%2Fngautofocus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianmurrays%2Fngautofocus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianmurrays%2Fngautofocus/lists"}