Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRepeatScope

$scope for ngRepeat directive. see https://docs.angularjs.org/api/ng/directive/ngRepeat

Hierarchy

Indexable

[index: string]: any

$scope for ngRepeat directive. see https://docs.angularjs.org/api/ng/directive/ngRepeat

Index

Properties

$$isolateBindings

$$isolateBindings: any

$$phase

$$phase: any

$even

$even: boolean

true if the iterator position $index is even (otherwise false).

$first

$first: boolean

true if the repeated element is first in the iterator.

$id

$id: number

$index

$index: number

iterator offset of the repeated element (0..length-1).

$last

$last: boolean

true if the repeated element is last in the iterator.

$middle

$middle: boolean

true if the repeated element is between the first and last in the iterator.

$odd

$odd: boolean

true if the iterator position $index is odd (otherwise false).

$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

$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

$digest

  • $digest(): 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

$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