title: Enable a button everyday at particular time(2 am) in angular js
body: <p>I have a todo list with a 'done' button with each todo. Once the 'done' button is clicked by the user, it will be disabled. The button should be enabled at 2 am everyday. 
  I could disable the button, but i am unable to enable it at 2 am. Here is my code.</p>
  
  <pre><code>$scope.doneItem = function(todo) {
      todo.stopSpam = true; 
      $interval(callAtInterval, 3000);
  
      function callAtInterval(){
          var date = new Date();
          if (date.getHours() === 2 &amp;&amp; date.getMinutes() ===0){
              todo.stopSpam = false;
          }
      }
  };
  </code></pre>