Angular 1.58 problems with promises

Hi,

When Creating the controller I call a promise that populates the model. But the model is undefined when the page template is loaded.
I can use ng-if=“vm.model” but there must be a better way to get from this asyn process when creating the controller.

Also I’m using TypeScript.

Any ideas?