resolve ng-model cannot be set