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

Use translate service in error block

$
0
0

@mdline wrote:

Hello,

I want to use the translate service in an error block like this…

this.backendApi.readData(.subscribe(
       success => xxx,
       error => {
         this.translateService.get(error)['value'];
       },
       ()
     );

But got error for this.translateService

 Cannot read property 'get' of undefined

So how can I use the translateService here?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles



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