templates/interface/js/ngapimock.controller.js
function toggleRecording() {
            mockService.toggleRecord({}, function (response) {
                vm.record = response.record;
                if (vm.record) {
                    interval = $interval(refreshMocks, 5000);
                } else {
                    $interval.cancel(interval);
                    refreshMocks();
                }
            });
        }
function toggleRecording() {
            mockService.toggleRecord({}, function (response) {
                vm.record = response.record;
                if (vm.record) {
                    interval = $interval(refreshMocks, 5000);
                } else {
                    $interval.cancel(interval);
                    refreshMocks();
                }
            });
        }
function toggleRecording ( ) { mockService . toggleRecord ( { } , function ( response ) { vm . record = response . record ; if ( vm . record ) { interval = $interval ( refreshMocks , 5000 ) ; } else { $interval . cancel ( interval ) ; refreshMocks ( ) ; } } ) ; }
Toggle the recording.
Toggle the recording .