加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

AngularJs出现错误Error: [ng:areq]

发布时间:2020-12-17 08:42:11 所属栏目:安全 来源:网络整理
导读:错误描述:Error: [ng:areq] http://errors.angularjs.org/1.4.8/ng/areq?p0=HelloCtrlp1=not%20a%20function%2C%20got%20undefined Angular出现这种错误的原因,是由于没有在页面中使用模块引入controller导致的,修改内容如下: 添加:ng-app='app',然后在

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


Angular出现这种错误的原因,是由于没有在页面中使用模块引入controller导致的,修改内容如下:

添加:ng-app='app',然后在js中添加如下代码:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读