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

Return data from promise

$
0
0

@tomeskrt wrote:

I’m currently trying to read a value from a SOAP call, this value is returned like this:

{PASSWORDMD5: "OKOKOKOKOKLOK"}

This is my .ts code:

doLogin() {
      return this.privacyProvider.getPWD()
       .toPromise()
       .then((data: any) => {
          let res = data[1];
          console.log(res)
       })
       .catch(err => {
          console.log('Error', err);
          return err;
       })
     }

How can I read the value inside the {}?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70915

Trending Articles



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