Your template will be evaluated before ionViewDidLoad()
is called, so you cannot wait until that method to do necessary initialization.
Also, please please stop perpetuating that provider idiom. See this post for some information on some of the things that are wrong with it and a suggestion for an alternative.