Title: function isModuleDefined · Issue #16569 · angular/angular.js · GitHub
Open Graph Title: function isModuleDefined · Issue #16569 · angular/angular.js
X Title: function isModuleDefined · Issue #16569 · angular/angular.js
Description: I'm submitting a ... bug report feature request other Current behavior: When redefine module, orgin module lost. Expected / new behavior: Override a module, or do something whether the modele is defined or not. Minimal reproduction of th...
Open Graph Description: I'm submitting a ... bug report feature request other Current behavior: When redefine module, orgin module lost. Expected / new behavior: Override a module, or do something whether the modele is de...
X Description: I'm submitting a ... bug report feature request other Current behavior: When redefine module, orgin module lost. Expected / new behavior: Override a module, or do something whether the modele i...
Opengraph URL: https://github.com/angular/angular.js/issues/16569
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"function isModuleDefined","articleBody":"\u003c!--\r\nIF YOU DON'T FILL OUT THE FOLLOWING INFORMATION WE MIGHT CLOSE YOUR ISSUE WITHOUT INVESTIGATION\r\n-->\r\n\r\n\u003c!--\r\n- For *SUPPORT QUESTIONS*, use one of the\r\n[support channels](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#question).\r\n- Before submitting, please **SEARCH GITHUB** for a similar issue or PR. -->\r\n\r\n**I'm submitting a ...**\r\n\u003c!-- (check one with \"x\") -->\r\n- [ ] bug report\r\n- [x] feature request\r\n- [ ] other \u003c!--(Please do not submit support requests here - see above)-->\r\n\r\n**Current behavior:**\r\nWhen redefine module, orgin module lost.\r\n\u003c!-- Describe how the bug manifests / how the current features are insufficient. -->\r\n\r\n**Expected / new behavior:**\r\nOverride a module, or do something whether the modele is defined or not.\r\n\u003c!-- Describe what the behavior would be without the bug / how the feature would improve AngularJS -->\r\n\r\n**Minimal reproduction of the problem with instructions:**\r\nnone\r\n\u003c!--\r\nIf the current behavior is a bug or you can illustrate your feature request better with an example,\r\nplease provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:yBpEi4).\r\n-->\r\n\r\n**AngularJS version:** 1.x.y\r\nall\r\n\u003c!-- Check whether this is still an issue in the most recent stable or in the snapshot AngularJS\r\nversion (https://code.angularjs.org/snapshot/) -->\r\n\r\n**Browser:** [all]\r\n\u003c!-- All browsers where this could be reproduced (and Operating System if relevant) -->\r\n\r\n**Anything else:**\r\nbefore the code:\r\n```\r\n if (requires && modules.hasOwnProperty(name)) {\r\n modules[name] = null;\r\n }\r\n```\r\nadd:\r\n```\r\n if(isBoolean(requires)){\r\n return modules.hasOwnProperty(name);\r\n }\r\n```\r\n\r\nthen I can user like this:\r\n```\r\n if(angular.module('my-module', true)){\r\n // codes\r\n }\r\n else{\r\n // codes if not exit module 'my-module'\r\n }\r\n```\r\n\r\n\r\n\r\n\u003c!-- e.g. stacktraces, related issues, suggestions how to fix -->\r\n","author":{"url":"https://github.com/linjianhong","@type":"Person","name":"linjianhong"},"datePublished":"2018-05-18T03:12:54Z","url":"https://github.com/angular/angular.js/issues/16569"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d6541fe6-1617-d3ca-4dac-4bec00537ba6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB34:C816B:45EB44:622712:6AFDB8E7 |
| html-safe-nonce | ac6c408c65e0d8394faf59ded188bde03d64cd40940618c497808479ad2f6e8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjM0OkM4MTZCOjQ1RUI0NDo2MjI3MTI6NkFGREI4RTciLCJ2aXNpdG9yX2lkIjoiNjAwOTAxNTA0OTg5NzM5MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b219aa7b842b1b664feea66fa9ea160f315e6c9c9386484171f59e34a7d399ef |
| hovercard-subject-tag | issue:324255981 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/16569/issue_layout |
| twitter:image | https://opengraph.githubassets.com/66eff35da44b1981ac6b609cec388833eefa610ae58bbb6ae0b935b3405a6c23/angular/angular.js/issues/16569 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66eff35da44b1981ac6b609cec388833eefa610ae58bbb6ae0b935b3405a6c23/angular/angular.js/issues/16569 |
| og:image:alt | I'm submitting a ... bug report feature request other Current behavior: When redefine module, orgin module lost. Expected / new behavior: Override a module, or do something whether the modele is de... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | linjianhong |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8309f07eb60a4237a657068c83d0bb57be4c7e02937f5e9933126f4bd596aac4 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f7154d847f1ddc5baa83b109a3e1d924605e2a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width