AngularJS错误:Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined
	
	AngularJS错误: Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined
Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined 
错误显示:
	![AngularJS:Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined AngularJS:Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined](http://www.yizhi227.com/content/uploadfile/201503/26ce1425368199.png) 
 
	
处理方法:
出现这个错误,请确认下图圈出来的代码,在AngularJS v1.3.14中,需要下图这样写,如果是v1.0.3就可以直接写控制器方法PhoneListCtrl,然后设置ng-controller="PhoneListCtrl"
	![AngularJS错误处理:Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined AngularJS错误处理:Error: [ng:areq] Argument 'MyCtrl' is not a function, got undefined](http://www.yizhi227.com/content/uploadfile/201503/a71f1425368189.png) 
 
	
	
本文固定链接:http://www.yizhi227.com/?post=28
本文由Jessie原创或编辑,互联分享,尊重版权,转载请以链接形式标明本文地址
本文由Jessie原创或编辑,互联分享,尊重版权,转载请以链接形式标明本文地址

