Angularjs '$ionicScroll';,离子色谱中的指令错误要求
当我使用ng repeat时,我举了一个简单的ng repeat的例子,它工作得很好。但是当我使用collection repeat时,它给了我这个错误 找不到指令“collectionRepeat”所需的控制器“$ionicScroll” 你能帮我解决这个错误吗 这是我的宝物Angularjs '$ionicScroll';,离子色谱中的指令错误要求,angularjs,angularjs-directive,ionic-framework,angularjs-scope,Angularjs,Angularjs Directive,Ionic Framework,Angularjs Scope,当我使用ng repeat时,我举了一个简单的ng repeat的例子,它工作得很好。但是当我使用collection repeat时,它给了我这个错误 找不到指令“collectionRepeat”所需的控制器“$ionicScroll” 你能帮我解决这个错误吗 这是我的宝物 发票网格 {{n.name} {{n.lasename}} 第一篇博文谷歌博文: 收集重复需要一个滚动系统。 因此,请使用 见更新的plnkr: <html ng-app="ionicApp">
发票网格
{{n.name}
{{n.lasename}}
第一篇博文谷歌博文:
收集重复需要一个滚动系统。
因此,请使用
见更新的plnkr:
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Invoices Grid</title>
<!--Stylesheets-->
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<!--Scripts-->
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
<script src="script.js"></script>
</head>
<body ng-controller="a">
<div class="row" collection-repeat="n in names">
<div class="col">{{n.name}}</div>
<div class="col">{{n.lasename}}</div>
</div>
</body>
</html>