W3cubDocs

/Angular.js 1.6

Improve this Doc View Source $qProvider

  1. $q
  2. provider in module ng

Methods

  • errorOnUnhandledRejections([value]);

    Retrieves or overrides whether to generate an error when a rejected promise is not handled. This feature is enabled by default.

    Parameters

    Param Type Details
    value
    (optional)
    boolean

    Whether to generate an error when a rejected promise is not handled.

    Returns

    booleanng.$qProvider

    Current value when called without a new value or self for chaining otherwise.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.6.5/docs/api/ng/provider/$qProvider