Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/449.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript iOS Chrome和AngularJS不在头部执行控制器_Javascript_Ios_Angularjs_Google Chrome - Fatal编程技术网

Javascript iOS Chrome和AngularJS不在头部执行控制器

Javascript iOS Chrome和AngularJS不在头部执行控制器,javascript,ios,angularjs,google-chrome,Javascript,Ios,Angularjs,Google Chrome,这种情况只有在iOS版的Chrome浏览器中才会发生。 我在html中有类似的东西 <html ng-app="MY_APP"> <head ng-conroller="headCtrl as head"> <title ng-bind="head.title"></title> ... libraries... <link rel="stylesheet" type="text/css" ng-href="./css/{{ head.sty

这种情况只有在iOS版的Chrome浏览器中才会发生。 我在html中有类似的东西

<html ng-app="MY_APP">
<head ng-conroller="headCtrl as head">
<title ng-bind="head.title"></title>
... libraries...
<link rel="stylesheet" type="text/css" ng-href="./css/{{ head.style }}.css"/>
</head>
<body ng-controller="mainCrtl as main">
</body>
</html>

谢谢您的建议。

您的视图文件中有一个输入错误。应该是:

<head ng-controller="headCtrl as head">
不是


嗨,我也有同样的问题。你知道为什么它不起作用吗?如果您有解决方案,请告诉我:
<head ng-controller="headCtrl as head">
<head ng-conroller="headCtrl as head">