Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to display selected image from gallery?

$
0
0

@taylormaster wrote:

Hi!

Here are code:

$scope.selImages = function() {

      document.addEventListener("deviceready", function () {

        var options = {
                        quality: 50,
                        destinationType: Camera.DestinationType.DATA_URL,
                        sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
                        targetWidth: 100,
                     };

        $cordovaCamera.getPicture(options).then(function(imageData) {
          $scope.image = imageData;

          }, function(err) {
              // error
          });
      })
  }

    <div>
      <img class="pix-zone-pix" ng-src="{{image}}"/>
    </div>

and the answer on image

so how to display selected image? or imageData(url)?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>