Example: use the promise from $http in template