Angular - how to make $interval work from user input
<p>I am taking date and time from user as input and then wanted to display it interval in label
After that datetime completes I want to make that label color change.</p>

<p>Please guide me how can i achieve this.</p>

<p><a href="https://codepen.io/shreyag020/pen/vKvmdx" rel="nofollow">https://codepen.io/shreyag020/pen/vKvmdx</a></p>

<pre><code>$interval(function(){
todoTime=$scope.datetime;
});
</code></pre>