angular / angular-hint

run-time hinting for AngularJS applications
362 stars 45 forks source link

`ng-hint` throw `object is not a function` (Angular 1.3.1) #47

Open laguiz opened 9 years ago

laguiz commented 9 years ago

When I add hint.js my application load properly but ngHint tells me that ngHint is included on the page, but is not active because there is nong-hintattribute present (note that I get already Controllers, Modules and Directives hint in console).

If I add ng-hint directive next to my ng-app on <html> I get this error :

TypeError: object is not a function
    at http://localhost:9000/assets/vendors/angular/angular.js:7564:13
    at forEach (http://localhost:9000/assets/vendors/angular/angular.js:347:20)
    at nodeLinkFn (http://localhost:9000/assets/vendors/angular/angular.js:7563:11)
    at compositeLinkFn (http://localhost:9000/assets/vendors/angular/angular.js:6959:13)
    at compositeLinkFn (http://localhost:9000/assets/vendors/angular/angular.js:6962:13)
    at publicLinkFn (http://localhost:9000/assets/vendors/angular/angular.js:6838:30)
    at http://localhost:9000/assets/vendors/angular-hint/hint.js:2063:22
    at http://localhost:9000/assets/vendors/angular/angular.js:1456:27
    at Scope.$eval (http://localhost:9000/assets/vendors/angular/angular.js:14110:28)
    at Scope.$apply (http://localhost:9000/assets/vendors/angular/angular.js:14208:23) 

Versions info : ngHint : master at 10:30 today Angular : 1.3.1

I'm not sure if I'm using ng-hint properly or if it's a bug.

Feel free to ask me more details if needed.

thenikso commented 9 years ago

+1

benheller commented 9 years ago

+1

timstuyckens commented 9 years ago

+1 Even in the latest version of the example: image

diwu1989 commented 9 years ago

Please fix this