Spec-Zone.ru › Angular.js 1.3

Improve this Doc View Source $rootScope.Scope

  1. type in module ngMock

Scope type decorated with helper methods useful for testing. These methods are automatically available on any Scope instance when ngMock module is loaded.

In addition to all the regular Scope methods, the following helper methods are available:

Methods

  • $countChildScopes();

    Counts all the direct and indirect child scopes of the current scope.

    The current scope is excluded from the count. The count includes all isolate child scopes.

    Returns

    number

    Общее количество дочерних scope.

  • $countWatchers();

    Counts all the watchers of direct and indirect child scopes of the current scope.

    The watchers of the current scope are included in the count and so are all the watchers of isolate child scopes.

    Returns

    number

    Общее количество наблюдателей.

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.3.20/docs/api/ngMock/type/$rootScope.Scope

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API