Answer the question
In order to leave comments, you need to log in
How to correctly update the time in an Angular page?
There is this conclusion:
<tr ng-repeat="item in items">
{{item.date | fromNow}}
</tr>
Answer the question
In order to leave comments, you need to log in
I had similar problems with the authorization status when it was necessary to display the logout button using ng-if and for some reason this happened only after the page was refreshed.
but when i wrapped the controller method into a function
o.status = function () {
auth.status;
}
<div ng-controller="userController as uc">
<div ng-if="uc.status">
</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question