Im trying to handle durationc calculation in my AngularJS
app.
If User logged In then it should show timer counting time in Hr
and Mins
.
for example. User logged in since 15 minutes passed then UI should show
LoggedIn time: 0hr 15m
.
I tried to user angular-timer and angular-moment
and it works but when user SignOut it still continue showing timer running.
below is HTML code used in angular-timer
<i class="ti-alarm-clock"></i><timer start-time="visit.SignInTime" end-time="1476990000000">{{days}} days, {{hours}} hours, {{minutes}} minutes, {{seconds}} seconds</timer><br />
end-time
not working with start-time
.