-1
경과 시간이있는 버튼을 업데이트하려고합니다. 나는 타이머를 기록 콘솔, 한 번 단추 레이블을 업데이트,하지만 시간이 업데이트 아니에요 수타이머의 각도 업데이트 버튼
<button ng-show="location" class="button button-large assertive icon {{buttonIcon}} button-block" ng-click="record()">
{{buttonLabel}}
</button>
$scope.buttonLabel = "stop";
$scope.recordParams.timer = $interval(function(){
var time = getTimeElapsed(initialTime);
$scope.buttonLabel = time;
}, 100);
그것은 '정지'로 변경됩니다 그러나 나는 시간에 업데이트 할 수 없습니다.
문제가 해결되었습니다. 다음 번에 전체 컨트롤러 선언을 게시하십시오. –