Error: [ng:areq] from angular controller

后端 未结 20 2153
攒了一身酷
攒了一身酷 2020-11-27 17:39

This is a long shot, but has anyone seen this error before? I am trying to add \'Transporters\' using express, angular and mongoDB. I get this error whenever I access a page

20条回答
  •  爱一瞬间的悲伤
    2020-11-27 18:12

    I know this sounds stupid, but don't see it on here yet :). I had this error caused by forgetting the closing bracket on a function and its associated semi-colon since it was anonymous assigned to a var at the end of my controller.

    It appears that many issues with the controller (whether caused by injection error, syntax, etc.) cause this error to appear.

提交回复
热议问题