Input a number and showed it in 'hh:mm:ss' /time format in AngularJS
<p>Im making function in my app that when I entered a specific number, It will display the in hh:mm:ss format and start counting down. The input number will be treated as minutes for example when I input 2, the display would be 00:02:00 then it will start counting down.</p>

<pre><code> &lt;body ng-app="mehmetcankerApp"&gt;
 &lt;!--counterCtrl App Controller --&gt;   
&lt;div ng-controller="counterCtrl"&gt;
 &lt;!--Angular Binding --&gt;  
 &lt;input type="number" ng-model="counter"/&gt;
&lt;p ng-model="format" ng-bind="counter"  id="numOfDozens"&gt;&lt;/p&gt;
    &lt;button ng-click="stop()"&gt;Stop&lt;/button&gt;
    &lt;button ng-click="countdown()"&gt;Start&lt;/button&gt;     
&lt;/div&gt;
</code></pre>

<p>The whole code is in this plnker link: <a href="http://plnkr.co/edit/Mzv6W9smmRkaDPU4cgVa?p=preview" rel="nofollow">http://plnkr.co/edit/Mzv6W9smmRkaDPU4cgVa?p=preview</a></p>