Error: [ng:areq] Argument ‘fn’ is not a function in Angular JS

Uncaught Error: [$injector:modulerr] Failed to instantiate module regApp due to:
Error: [ng:areq] Argument ‘fn’ is not a function, got string
http://errors.angularjs.org/1.4.8/ng/areq?p0=fn&p1=not%20a%20function%2C%20got%20string
There are 2 solutions to solve this problem.
1) Check where you have closed the square bracket after providing the dependency.
2) Check the script order on the main page , put ng-route js below the angular min.

Comments

Popular posts from this blog

Java Interview : Threads

Spring Framework Interview Notes : Part Two Wiring

Card Dealer In Java in Less than 5 minutes