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

Ionic 1 image is not showing when button clicked

$
0
0

@alkahtani wrote:

Can anyone help on this , as you can see in the attachment , first screen showing the images on view enter event , the image bind to $scope variable , now , when i click share button the image is disappeared, how to preserve my {{img}} when $ionicloading is showing.

,
HTML

<div class="item item-thumbnail-right" style="border-width: 0px;margin-left: 5px">
          <img src={{img}} style="width: 50;height: 50;">
          <P>{{img}}</P>
           <label class="item item-input item-floating-label">
              <span class="input-label"></span>
              <input type="text" placeholder="Write a caption" ng-model="$parent.ImgCaption">

           </label>
      </div>

Controller

$scope.$on('$ionicView.enter', function (event, viewData) {
             $scope.img=UserImagesUploadService.GetimgDirectoryURL()
     })

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71000


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