Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRootScopeService

Hierarchy

Indexable

[index: string]: any

Index

Properties

$$isolateBindings

$$isolateBindings: any

$$phase

$$phase: any

$id

$id: number

$parent

$parent: IScope

$root

Methods

$apply

  • $apply(): any
  • $apply(exp: string): any
  • $apply(exp: function): any
  • Returns any

  • Parameters

    • exp: string

    Returns any

  • Parameters

    • exp: function

    Returns any

$applyAsync

  • $applyAsync(): any
  • $applyAsync(exp: string): any
  • $applyAsync(exp: function): any
  • Returns any

  • Parameters

    • exp: string

    Returns any

  • Parameters

    • exp: function

    Returns any

$broadcast

  • Dispatches an event name downwards to all child scopes (and their children) notifying the registered $rootScope.Scope listeners.

    The event life cycle starts at the scope on which $broadcast was called. All listeners listening for name event on this scope get notified. Afterwards, the event propagates to all direct and indirect scopes of the current scope and calls all registered listeners along the way. The event cannot be canceled.

    Any exception emitted from the listeners will be passed onto the $exceptionHandler service.

    Parameters

    • name: string

      Event name to broadcast.

    • Rest ...args: any[]

      Optional one or more arguments which will be passed onto the event listeners.

    Returns IAngularEvent

$destroy

  • $destroy(): void
  • Returns void

$digest

  • $digest(): void
  • Returns void

$emit

  • Dispatches an event name upwards through the scope hierarchy notifying the registered $rootScope.Scope listeners.

    The event life cycle starts at the scope on which $emit was called. All listeners listening for name event on this scope get notified. Afterwards, the event traverses upwards toward the root scope and calls all registered listeners along the way. The event will stop propagating if one of the listeners cancels it.

    Any exception emitted from the listeners will be passed onto the $exceptionHandler service.

    Parameters

    • name: string

      Event name to emit.

    • Rest ...args: any[]

      Optional one or more arguments which will be passed onto the event listeners.

    Returns IAngularEvent

$eval

  • $eval(): any
  • $eval(expression: string, locals?: Object): any
  • $eval(expression: function, locals?: Object): any
  • Returns any

  • Parameters

    • expression: string
    • Optional locals: Object

    Returns any

  • Parameters

    • expression: function
    • Optional locals: Object

    Returns any

$evalAsync

  • $evalAsync(): void
  • $evalAsync(expression: string): void
  • $evalAsync(expression: function): void
  • Returns void

  • Parameters

    • expression: string

    Returns void

  • Parameters

    • expression: function

    Returns void

$new

  • Parameters

    • Optional isolate: boolean
    • Optional parent: IScope

    Returns IScope

$on

  • $on(name: string, listener: function): function
  • Listens on events of a given type. See $emit for discussion of event life cycle.

    The event listener function format is: function(event, args...).

    Parameters

    • name: string

      Event name to listen on.

    • listener: function

      Function to call when the event is emitted.

    Returns function

      • (): void
      • Returns void

$watch

  • $watch(watchExpression: string, listener?: string, objectEquality?: boolean): function
  • $watch<T>(watchExpression: string, listener?: function, objectEquality?: boolean): function
  • $watch(watchExpression: function, listener?: string, objectEquality?: boolean): function
  • $watch<T>(watchExpression: function, listener?: function, objectEquality?: boolean): function
  • Parameters

    • watchExpression: string
    • Optional listener: string
    • Optional objectEquality: boolean

    Returns function

      • (): void
      • Returns void

  • Type parameters

    • T

    Parameters

    • watchExpression: string
    • Optional listener: function
        • (newValue: T, oldValue: T, scope: IScope): any
        • Parameters

          • newValue: T
          • oldValue: T
          • scope: IScope

          Returns any

    • Optional objectEquality: boolean

    Returns function

      • (): void
      • Returns void

  • Parameters

    • watchExpression: function
    • Optional listener: string
    • Optional objectEquality: boolean

    Returns function

      • (): void
      • Returns void

  • Type parameters

    • T

    Parameters

    • watchExpression: function
    • Optional listener: function
        • (newValue: T, oldValue: T, scope: IScope): any
        • Parameters

          • newValue: T
          • oldValue: T
          • scope: IScope

          Returns any

    • Optional objectEquality: boolean

    Returns function

      • (): void
      • Returns void

$watchCollection

  • $watchCollection<T>(watchExpression: string, listener: function): function
  • $watchCollection<T>(watchExpression: function, listener: function): function
  • Type parameters

    • T

    Parameters

    • watchExpression: string
    • listener: function
        • (newValue: T, oldValue: T, scope: IScope): any
        • Parameters

          • newValue: T
          • oldValue: T
          • scope: IScope

          Returns any

    Returns function

      • (): void
      • Returns void

  • Type parameters

    • T

    Parameters

    • watchExpression: function
    • listener: function
        • (newValue: T, oldValue: T, scope: IScope): any
        • Parameters

          • newValue: T
          • oldValue: T
          • scope: IScope

          Returns any

    Returns function

      • (): void
      • Returns void

$watchGroup

  • $watchGroup(watchExpressions: any[], listener: function): function
  • $watchGroup(watchExpressions: function[], listener: function): function
  • Parameters

    • watchExpressions: any[]
    • listener: function
        • (newValue: any, oldValue: any, scope: IScope): any
        • Parameters

          • newValue: any
          • oldValue: any
          • scope: IScope

          Returns any

    Returns function

      • (): void
      • Returns void

  • Parameters

    • watchExpressions: function[]
    • listener: function
        • (newValue: any, oldValue: any, scope: IScope): any
        • Parameters

          • newValue: any
          • oldValue: any
          • scope: IScope

          Returns any

    Returns function

      • (): void
      • Returns void

Generated using TypeDoc