Using Google Placea API with ionic

I am building an ionic app. I want to use the Google Places API in my app. I want the app to work even if it starts up and there is no internet connection.

It would be awesome if you could give me some advice how to dynamically load the Google Places API. I asked this question on stackoverflow a couple of weeks ago, but nobody provided any further help. Here is the link to my question.

Thanks a lot!