Save (Insert) Login and Logout time in Database in AngularJS

Last Reply one month ago By skp

Posted one month ago

How to save login time into the database when I loggedin into the application and the time when I logged out from the application in angularjs

You are viewing reply posted by: skp one month ago.
Posted one month ago

 

$scope.date = new Date();
$scope.login = function() {
    $scope.loginDate = $scope.date;
}
$scope.logout = function() {
    $scope.logoutDate = $scope.date;
}