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

IonicPopUp showing http.post result data

$
0
0

@angelomrigo wrote:

Hi

How can i pass data from http.post results to an IonicPopUp?

Inside my http.post success section i do create the alertPopUp function passing data as parameter .

It opens the popup but there is no data to show.

Here is the code i do use the sample from http://ionicframework.com/docs/api/service/$ionicPopup/ :

$scope.showAlert = function(data) {

 var alertPopup = $ionicPopup.alert({

    title: 'Detais',
    template: 'Details : 1. {{result}} 2. {{state}} {{result.vehicle_brand}} 2. {{scope}}'
 });
 alertPopup.then(function(res) {
     console.log('Thank you for not eating my delicious ice cream cone');
 });
};

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>