Class ComputedProperty

A computed property transforms an objects function into a property. By default the function backing the computed property will only be called once and the result will be cached. You can specify various properties that your computed property is dependent on. This will force the cached result to be recomputed if the dependencies are modified.

Hierarchy

Index

Methods

Methods

public cacheable(aFlag?: boolean): ComputedProperty

Parameters

  • aFlag?: boolean optional

Returns

ComputedProperty

public get(keyName: string): any

Parameters

  • keyName: string

Returns

any

public meta(meta: {}): ComputedProperty

Parameters

  • meta: {}

Returns

ComputedProperty

public property(string?: Array<any>): ComputedProperty

Parameters

  • string?: Array<any> optional

Returns

ComputedProperty

public readOnly(): ComputedProperty

Returns

ComputedProperty

public set(keyName: string, newValue: any, oldValue: string): any

Parameters

  • keyName: string
  • newValue: any
  • oldValue: string

Returns

any

public volatile(): ComputedProperty

Returns

ComputedProperty