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

fix(injector): check that modulesToLoad isArray. #12285

Closed
wants to merge 1 commit into from

Commits on Jul 31, 2015

  1. 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.
    mprobst committed Jul 31, 2015
    Configuration menu
    Copy the full SHA
    b4ead6e View commit details
    Browse the repository at this point in the history