Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Unable to use class variable for map

$
0
0

I have created class level variable “properties” which i tried to populated in ionViewWillEnter, ionViewDidEnter and componentWIllReceiveProps through API call and assign the value with usage of spread operator like this.properties = service.response. I also inserted a console.log(properties) in the render. What i can see is that for former two the render seems to be called first, then api update for the later, the api is called but the value is not set.
Hence nothing is rendered.

What can be the issue?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



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