I'm having a problem trying to use "this" with angular functions (specifically $http.get) inside a controller.
Example:
Javascript- (psuedo code)
...
.controller('testController')
{
$http.get(data)
{
this.Stuff = data;
}
}
...
HTML-
<div ng-controller='testController as test'>
{{test.Stuff}}
</div>
When trying to access test.Stuff in the html, it is empty.
I understand that there is a scope issue, but shouldn't I be able to access the controller's 'this' inside of the $http function?