I needed a very simple solution to hide something after sometime and managed to get this to work:
In angular you can do this:
$timeout(self.hideError,2000);
Here is the function that i call when the timeout has been reached
self.hideError = function(){
self.HasError = false;
self.ErrorMessage = '';
};
So now my dialog/ui can use those properties to hide elements.