{"id":42044626,"url":"https://github.com/subchen/angular-async-loader","last_synced_at":"2026-01-26T06:06:40.598Z","repository":{"id":57178054,"uuid":"43549576","full_name":"subchen/angular-async-loader","owner":"subchen","description":"Load modules and components asynchronously for angular 1.x application.","archived":false,"fork":false,"pushed_at":"2017-04-09T13:00:27.000Z","size":208,"stargazers_count":135,"open_issues_count":2,"forks_count":40,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-17T04:51:36.003Z","etag":null,"topics":["amd","angular-async-loader","angularjs","async","cmd","loader","requirejs","systemjs"],"latest_commit_sha":null,"homepage":"http://subchen.github.io/angular-async-loader/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-02T11:36:03.000Z","updated_at":"2024-09-05T07:11:20.000Z","dependencies_parsed_at":"2022-09-14T02:01:10.575Z","dependency_job_id":null,"html_url":"https://github.com/subchen/angular-async-loader","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/subchen/angular-async-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fangular-async-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fangular-async-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fangular-async-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fangular-async-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subchen","download_url":"https://codeload.github.com/subchen/angular-async-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subchen%2Fangular-async-loader/sbom","scorecard":{"id":856694,"data":{"date":"2025-08-11","repo":{"name":"github.com/subchen/angular-async-loader","commit":"0967ac7df56c1881a69a6247e1b839187a59e77b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: make.sh:16","Warn: npmCommand not pinned by hash: make.sh:28","Warn: npmCommand not pinned by hash: make.sh:72","Info:   0 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-24T00:02:13.696Z","repository_id":57178054,"created_at":"2025-08-24T00:02:13.697Z","updated_at":"2025-08-24T00:02:13.697Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28768074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["amd","angular-async-loader","angularjs","async","cmd","loader","requirejs","systemjs"],"created_at":"2026-01-26T06:06:39.873Z","updated_at":"2026-01-26T06:06:40.593Z","avatar_url":"https://github.com/subchen.png","language":"JavaScript","readme":"[![NPM Repo](https://img.shields.io/npm/v/angular-async-loader.svg)](https://www.npmjs.com/package/angular-async-loader)\n[![License](http://img.shields.io/badge/License-Apache_2-red.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)\n\n# angular-async-loader\n\nLoad modules and components asynchronously for angular 1.x application.\n\nSupport load angular modules:\n* `app.useModule(name)`\n\nSupport load angular components:\n\n* `app.controller`\n* `app.services`\n* `app.filter`\n* `app.directive`\n* `app.value`\n* `app.constant`\n* `app.provider`\n* `app.decorator`\n\nSupport following amd/cmd loaders:\n\n* `Require.js`\n* `Sea.js`\n* `System.js`\n\nSupport `controllerUrl/denpendencies` config in `angular-ui-router` and `angular-route`:\n\n* `$stateProvider.state`\n* `$routeProvider.when`\n\n# Demo\n\nhttp://subchen.github.io/angular-async-loader/demo/\n\n# Installation\n\nnpm\n\n```shell\nnpm install angular-async-loader\n```\n\nbower\n\n```shell\nbower install https://github.com/subchen/angular-async-loader.git\n```\n\n# Usage\n\n**index.html**\n\n```html\n\u003cscript src=\"assets/requirejs/require.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bootstrap.js\"\u003e\u003c/script\u003e\n```\n\n**bootstrap.js**\n\n```js\nrequire.config({\n    baseUrl: '/',\n    paths: {\n        'angular': 'assets/angular/angular.min',\n        'angular-ui-router': 'assets/angular-ui-router/release/angular-ui-router.min',\n        'angular-async-loader': 'assets/angular-async-loader/angular-async-loader.min',\n        'angular-ui-mask': 'assets/angular-ui-mask/dist/mask.min',\n        'ng-tags-input': 'assets/ng-tags-input/build/ng-tags-input.min'\n    },\n    shim: {\n        'angular': {exports: 'angular'},\n        'angular-ui-router': {deps: ['angular']}\n    }\n});\n\nrequire(['angular', './app-routes'], function (angular) {\n    angular.element(document).ready(function () {\n        angular.bootstrap(document, ['app']);\n        angular.element(document).find('html').addClass('ng-app');\n    });\n});\n```\n\n**app.js**\n\n```js\ndefine(function (require, exports, module) {\n    var angular = require('angular');\n    var asyncLoader = require('angular-async-loader');\n\n    require('angular-ui-router');\n\n    var app = angular.module('app', ['ui.router']);\n\n    // initialze app module for angular-async-loader\n    asyncLoader.configure(app);\n\n    module.exports = app;\n});\n```\n\n**app-routes.js**\n\n```js\ndefine(function (require) {\n    var app = require('./app');\n\n    app.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {\n        $urlRouterProvider.otherwise('/home');\n\n        $stateProvider\n            .state('home', {\n                url: '/home',\n                templateUrl: 'home/home.html',\n                // new attribute for ajax load controller\n                controllerUrl: 'home/homeCtrl',\n                controller: 'homeCtrl'\n            })\n            .state('users', {\n                url: '/users',\n                templateUrl: 'users/users.html',\n                // new attribute for ajax load controller\n                controllerUrl: 'users/usersCtrl',\n                controller: 'usersCtrl',\n                // support to load more controllers, services, filters, ...\n                dependencies: ['services/usersService']\n            })\n            .state('components', {\n                url: '/components',\n                templateUrl: 'components/components.html',\n                // new attribute for ajax load controller\n                controllerUrl: 'components/componentsCtrl',\n                controller: 'componentsCtrl'\n            });\n    }]);\n});\n```\n\n**users/usersCtrl.js**\n\n```js\ndefine(function (require) {\n    var app = require('../app');\n\n    // dynamic load services here or add into dependencies of ui-router state config\n    // require('../services/usersService');\n\n    app.controller('usersCtrl', ['$scope', function ($scope) {\n        // shortcut to get angular injected service.\n        var userServices = app.get('usersService');\n        $scope.userList = usersService.list();\n    }]);\n\n});\n```\n\n**components/componentsCtrl.js**\n\n```js\ndefine(function (require) {\n    var app = require('../app');\n\n    // dynamic load angular-ui-mask plugins for UI\n    require('angular-ui-mask');\n    app.useModule('ui.mask');\n\n    // dynamic load ng-tags-input plugins for UI\n    require('ng-tags-input');\n    app.useModule('ngTagsInput');\n\n    app.controller('componentsCtrl', ['$scope', function ($scope) {\n        ......\n    }]);\n\n});\n```\n\n\n# Build from Source\n\n```bash\ngit clone https://github.com/subchen/angular-async-loader.git\n\ncd angular-async-loader\n\n./make.sh install\n./make.sh test\n\nopen browser http://localhost:3000/\n```\n\n# License\n\nReleased under the [Apache 2 License](http://www.apache.org/licenses/LICENSE-2.0).\n\n```\nCopyright 2015-2016 Guoqiang Chen\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubchen%2Fangular-async-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubchen%2Fangular-async-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubchen%2Fangular-async-loader/lists"}