Skip to main content
edited title
Link
Aruna
  • 12k
  • 3
  • 31
  • 42

Angularjs AngularJS - controlError: ng:areq - Bad Argument controller is not a function

deleted 94 characters in body
Source Link
lucasnadalutti
  • 6k
  • 2
  • 30
  • 49

I'm sure this will get down voted straight away but any help would be greatly appreciated.

I'm reading the book Angularjs Essentials - http://www.goodreads.com/book/show/23139559-angularjs-essentials

I'm tryongtrying to follow the code exmaples.

I have this plunker with the code I have

https://plnkr.co/edit/jFK3ooODMChtXJqO7syf?p=preview

locally in chrome I get the error

    Error: ng:areq
    Bad Argument

    Argument 'parkingCtrl' is not a function, got undefined
    

I'm sure the problem is syntax in 'angular module' bit at the top of either controller.js, services.js or directive.js

Can anyone see what I'm doing wrong or how the stop this error

I'm sure this will get down voted straight away but any help would be greatly appreciated.

I'm reading the book Angularjs Essentials - http://www.goodreads.com/book/show/23139559-angularjs-essentials

I'm tryong to follow the code exmaples.

I have this plunker with the code I have

https://plnkr.co/edit/jFK3ooODMChtXJqO7syf?p=preview

locally in chrome I get the error

    Error: ng:areq
    Bad Argument

    Argument 'parkingCtrl' is not a function, got undefined
    

I'm sure the problem is syntax in 'angular module' bit at the top of either controller.js, services.js or directive.js

Can anyone see what I'm doing wrong or how the stop this error

I'm reading the book Angularjs Essentials - http://www.goodreads.com/book/show/23139559-angularjs-essentials

I'm trying to follow the code exmaples.

I have this plunker with the code I have

https://plnkr.co/edit/jFK3ooODMChtXJqO7syf?p=preview

locally in chrome I get the error

    Error: ng:areq
    Bad Argument

    Argument 'parkingCtrl' is not a function, got undefined
    

I'm sure the problem is syntax in 'angular module' bit at the top of either controller.js, services.js or directive.js

Can anyone see what I'm doing wrong or how the stop this error

Source Link

Angularjs - control is not a function

I'm sure this will get down voted straight away but any help would be greatly appreciated.

I'm reading the book Angularjs Essentials - http://www.goodreads.com/book/show/23139559-angularjs-essentials

I'm tryong to follow the code exmaples.

I have this plunker with the code I have

https://plnkr.co/edit/jFK3ooODMChtXJqO7syf?p=preview

locally in chrome I get the error

    Error: ng:areq
    Bad Argument

    Argument 'parkingCtrl' is not a function, got undefined
    

I'm sure the problem is syntax in 'angular module' bit at the top of either controller.js, services.js or directive.js

Can anyone see what I'm doing wrong or how the stop this error