Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Add warning message when a module is reset/replaced #6034

Closed
mark0978 opened this issue Jan 29, 2014 · 1 comment · May be fixed by #6191
Closed

Add warning message when a module is reset/replaced #6034

mark0978 opened this issue Jan 29, 2014 · 1 comment · May be fixed by #6191

Comments

@mark0978
Copy link
Contributor

Right now if you do something stupid like

foo.js:  angular.module('modname', []).directive(......

bar.js:  angular.module('modname', []).directive(......

The second statement wipes the first one from memory without any warning. It would be good if you could get some clue that something has been done wrong. Like

$log.warn("Module modname is being replaced");
@Narretz
Copy link
Contributor

Narretz commented Apr 21, 2017

Same as #1779

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants