angular / batarang

AngularJS WebInspector Extension for Chrome
MIT License
2.43k stars 338 forks source link

fix(dist/hint): support object as 1st arg to `controller()` #180

Closed gkalpak closed 9 years ago

gkalpak commented 9 years ago

Angular's controller() is overloaded: It either accepts a controller name and a controller construction function or it accepts a map of key/value pairs, key being a controller's name and value being its contructor function.

Previously, 'dist/hint.js' was only able to handle the former case.

(Probably addresses a few problems reported in comments here and there.)

Closes #123

gkalpak commented 9 years ago

Wrong place obviously. This belongs to angular-hint-controllers.

btford commented 9 years ago

awesome. Thanks!