'$ ionicScroll' required by the ERROR IN IONIC directive

I am doing a simple ng-repeat example, when I used ng-repeat it works great. But when I use collect-redo it gives me this error

The '$ ionicScroll' controller required by the 'collectionRepeat' directive could not be found!

Could you please help me to resolve this error?

Here is my my plucker

http://plnkr.co/edit/LjADQj07M4cEpTQP3WzS?p=preview

<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>

      

+3


source to share


1 answer


First google post: http://forum.ionicframework.com/t/error-compile-ctreq-controller-ionicscroll-required-by-directive-collectionrepeat-cant-be-found/4879

the repeat collection needs a scrolling system. Therefore, combine your code with<ion-content overflow-scroll="true" >



See updated plnkr: http://plnkr.co/edit/LuHPy3lbqYBlg35iYuw1?p=preview

0


source







All Articles