Loading …
There was an error loading this resource. Please try again later.
 Improve this Doc  View Source

angular.noop

  1. - function in module ng
Contents

Overview

A function that performs no operations. This function can be useful when writing code in the functional style.

function foo(callback) {
  var result = calculateResult();
  (callback || angular.noop)(result);
}

Usage

angular.noop();