angular-ui/ui-codemirror

Angular strict dependency injection

maitredede opened this issue ยท 2 comments

Hi,

Module is not written for strict dependency injection :

https://docs.angularjs.org/guide/di

Directive declaration should become :
.directive('uiCodemirror', ["$timeout", "uiCodemirrorConfig", uiCodemirrorDirective])

๐Ÿ‘

bower package has minified version with annotations(via ng-annotate), npm package has not.

๐Ÿ‘
Took me a while to figure out why it was crashing on production.