$scope.dates = new Date();
var ed = new Date($filter('date')($scope.dates,'hh:mm:ss'));
in the second line I want to get time, but I get reference error.
What is my problem?
(function(){
var app = angular.module('notesApp',['angular-markdown-editable']);
app.controller('notesController', function($scope, $interval){
function updateTime() {
$scope.dates = new Date();
var ed = new Date($filter('date')($scope.dates,'hh:mm:ss'));
alert(ed);
}
...
$fitler