D
D
DimaPolishuk2016-07-26 14:39:58
JavaScript
DimaPolishuk, 2016-07-26 14:39:58

How to implement document.documentElement in angular?

<form name="clockform">
  <input name="clock" size="12" maxlength="12" value="00:00:00"> 
</form>

$scope.clearFields = function() {
          isStart = 1;
          clearTimeout(clocktimer);
          document.clockform.clock.value='00:00:00';
        }

How to implement document.clockform.clock.value='00:00:00';in Angular?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2016-07-26
@DimaPolishuk

I'm hanging out with you)))

<form name="clockform">
  <input name="clock" size="12" maxlength="12" ng-model="clock"> 
</form>

$scope.clearFields = function() {
    isStart = 1;
    clearTimeout(clocktimer);
   $scope.clock = '00:00:00';
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question