SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(injector): check that modulesToLoad isArray.

When users accidentally just pass a single string, e.g.
`angular.injector('myModule')`, this change give them a better error message.

Currently Angular just reports that the module with the name 'm' is missing,
as it's iterating through all characters in the string, instead of all strings
in the module.

Closes #12285
M
Martin Probst committed
5abf593e6b3535cc836c99db4018a4e2fc2dbc3b
Parent: 9efe60f
Committed by Lucas Galfaso <lgalfaso@gmail.com> on 8/3/2015, 8:18:19 AM