How to reset the angular scope variable when the Html tag gets executed?

Hy, I have a variable bound to my scope, $scope.isSuccess = { invalidPhone : false } And I am using a span to display a message when the variable gets true …

Manipulating variable returned that is returned by promise AngularJS

So, I am stuck here most probably because of my limited understanding of promise Object. my function that fetch data from factory is $scope.getLogoFromService = function() { console.log(‘…