I cannot assign my result of my api request to the view in AngularJS

This is only a portion of my code. For some reason I can assign vm.print to my response, it does not show. However, when I console.log() the response, it appears in the console. Please help. I can assign vm.print to any string outside of the app.model.predict(){} function but when I assign it inside the function, it does not show up in the view , but only shows up in the console.

I'm not familiar with the library that you're using when you execute Clarifai.App, but I'm guessing it's not an Angular lib, so it probably just doesn't run the digest cycle automatically for you in the promise resolve (.then() callback)

You have to do it yourself. Try to inject thr $scope service, and run the $scope.$apply() method, like this: