title: Adding ionic slide dynamically from DB
body: <p>I am currently trying ionic. I am not really used to this kind of web dev so I might be totally off-track. Anyway, I want to access an SQLite DB and add the results to a ion-slide-box. </p>
  
  <p>I was trying something like that :</p>
  
  <pre><code>function selectResultSuccess(tx, results) 
  {
   var div = "";
   div += "&lt;ion-slide-box &gt;";
   for (var i = 0 ; i &lt; len ; i++)
     {
       div+="&lt;ion-slide&gt;"
       div+= results.rows.item(i).Result ;
       div+="&lt;/ion-slide&gt;"
     }
   div += "&lt;/ion-slide-box &gt;";
   $(".result-list").html(div);
  }
  </code></pre>
  
  <p>HTML :</p>
  
  <pre><code>&lt;ion-content ng-controller="ExampleController" class="result-list"&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p>app.js :</p>
  
  <pre><code> angModule.controller("ExampleController", function($scope,     $ionicSlideBoxDelegate) {
  $scope.navSlide = function(index) {
      $ionicSlideBoxDelegate.slide(index, 500);
  }
  $scope.nextSlide = function() {
      $ionicSlideBoxDelegate.next(500);
  }
  $scope.update = function() {
      $ionicSlideBoxDelegate.update();
  }
  });
  </code></pre>
  
  <p>So this does not work, the slidebox does not get updated and I got all my results on the same page (instead of having them on different slides), I have tried multiple things and I believe this is not the best way to handle that but I can't find anything that matches my needs.</p>
  
  <p>I am also trying to avoid working with SQLite plugins.</p>