title: Push Images into array
body: <p>I want to take photos of different items or multiple photos for one item, but I am struggling to figure out how I will be able to push the images into an array.</p>
  
  <p>a single image gets displayed from the first line :</p>
  
  <pre><code>&lt;img ng-show="imgURI !== undefined" ng-src="{{imgURI}}" style="text-align: center"&gt;
  </code></pre>
  
  <p>but with the <code>ng-repeat</code> it doesn't display one image.</p>
  
  <p>I quess my issues are:</p>
  
  <ol>
  <li>what is wrong with my ng-repeat?</li>
  <li>are the images actually being stored inside of the array correctly?</li>
  </ol>
  
  <p><strong>HTML</strong></p>
  
  <pre><code> &lt;button class="button button-full button-assertive" ng-click="takePhoto()"&gt;
      Take Photo
      &lt;/button&gt;
      &lt;img ng-show="imgURI !== undefined" ng-src="{{imgURI}}" style="text-align: center"&gt;
  &lt;ion-item class="item item-assertive"&gt;Test array&lt;/ion-item&gt;
   &lt;div ng-repeat="x in array"&gt;
       &lt;img ng-src="{{x.imgURI}}"&gt;
   &lt;/div&gt; center"&gt;
  </code></pre>
  
  <p><strong>Javascript</strong></p>
  
  <pre><code>  $scope.takePhoto = function () {
                var options = {
                  quality: 75,
                  destinationType: Camera.DestinationType.DATA_URL,
                  sourceType: Camera.PictureSourceType.CAMERA,
                  allowEdit: true,
                  encodingType: Camera.EncodingType.JPEG,
                  targetWidth: 300,
                  targetHeight: 300,
                  popoverOptions: CameraPopoverOptions,
                  saveToPhotoAlbum: false
              };
  
                  $scope.array = [];
  
                  $cordovaCamera.getPicture(options).then(function (imageData) {
                      $scope.imgURI = "data:image/jpeg;base64," + imageData;
                      $scope.imgURI = array;
                  }, function (err) {
                      // An error occured. Show a message to the user
                  });
              }
  </code></pre>