AngularJs错误

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_26975307/article/details/82356216

错误描述:

Error: [ng:areq] http://errors.angularjs.org/1.4.8/ng/areq?p0=HelloCtrl&p1=not%20a%20function%2C%20got%20undefined

可能原因:

1、没完全引入继承的js

2、angularjs  ng-model不允许为空,但你写了空

3、没有初始化ng-app

4、ng-app或者ng-controller参数绑定错误

猜你喜欢

转载自blog.csdn.net/qq_26975307/article/details/82356216