Integrate moment.js and its angular bindings.
This commit is contained in:
parent
98dc20542c
commit
4354b32288
4 changed files with 10 additions and 3 deletions
|
@ -28,7 +28,11 @@ function RepoCtrl($scope, Restangular, $routeParams, $rootScope) {
|
|||
$('#editModal').modal('hide');
|
||||
$scope.repo.description = $('#descriptionEdit')[0].value;
|
||||
$scope.repo.put();
|
||||
};
|
||||
};
|
||||
|
||||
$scope.parseDate = function(dateString) {
|
||||
return Date.parse(dateString);
|
||||
};
|
||||
|
||||
var namespace = $routeParams.namespace;
|
||||
var name = $routeParams.name;
|
||||
|
|
Reference in a new issue