I am using google matrix api to get distance and duration in my ionic 2 application.Problem which i am facing is that ,since the google api take some time to load i am able to insert values from google api to javascript array object only after the page is rendered
- values are getting inserted into array object but not showing up in view
- if i interact with UI lets just say press a button or a drop down then inserted values from google api appears
please suggest what might be correct way to tackle this problem ,any help is greatly appreciated