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

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

Open
laguiz opened this issue Nov 5, 2014 · 4 comments
Open

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

laguiz opened this issue Nov 5, 2014 · 4 comments

Comments

@laguiz
Copy link

laguiz commented Nov 5, 2014

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
Copy link

+1

1 similar comment
@benheller
Copy link

+1

@timstuyckens
Copy link

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

@diwu1989
Copy link

diwu1989 commented Dec 3, 2014

Please fix this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants