angular-underscore-module icon indicating copy to clipboard operation
angular-underscore-module copied to clipboard

Cannot be injected into providers

Open rochejul opened this issue 9 years ago • 0 comments

Hi

With the current approach, the underscore dependecy could not be used in provider.

Prefer using this approach to allowed injection in all angular components:

angular
   .module('underscore', [])
   .constant('_', window._);

Regards

rochejul avatar Jan 25 '17 13:01 rochejul