Javascript iOS Chrome和AngularJS不在头部执行控制器
这种情况只有在iOS版的Chrome浏览器中才会发生。 我在html中有类似的东西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
<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">