## Index

### Classes

- AtomViewModel

### Functions

- BindableBroadcast
- BindableReceive
- CachedWatch
- Receive
- Validate
- Watch
- waitForReady

## Functions

### BindableBroadcast

- BindableBroadcast(...channel: string[]): viewModelInitFunc

- - Defined in src/view-model/AtomViewModel.ts:356

  #### Parameters

  - ##### Rest ...channel: string[]

  #### Returns viewModelInitFunc

### BindableReceive

- BindableReceive(...channel: string[]): viewModelInitFunc

- - Defined in src/view-model/AtomViewModel.ts:338

  #### Parameters

  - ##### Rest ...channel: string[]

  #### Returns viewModelInitFunc

### CachedWatch

- CachedWatch(target: AtomViewModel, key: string, descriptor: any): void

- - Defined in src/view-model/AtomViewModel.ts:401

  Cached watch must be used with async getters to avoid reloading of resources unless the properties referenced are changed

  #### Parameters

  - ##### target: AtomViewModel

    ViewModel

  - ##### key: string

    name of property

  - ##### descriptor: any

    descriptor of property

  #### Returns void

### Receive

- Receive(...channel: string[]): viewModelInitFunc

- - Defined in src/view-model/AtomViewModel.ts:316

  Receive messages for given channel

  #### Parameters

  - ##### Rest ...channel: string[]

  #### Returns viewModelInitFunc

### Validate

- Validate(target: AtomViewModel, key: string | symbol, descriptor: any): void

- - Defined in src/view-model/AtomViewModel.ts:433

  #### Parameters

  - ##### target: AtomViewModel

  - ##### key: string | symbol

  - ##### descriptor: any

  #### Returns void

### Watch

- Watch(target: AtomViewModel, key: string | symbol, descriptor: any): void

- - Defined in src/view-model/AtomViewModel.ts:378

  #### Parameters

  - ##### target: AtomViewModel

  - ##### key: string | symbol

  - ##### descriptor: any

  #### Returns void

### waitForReady

- waitForReady(vm: AtomViewModel): Promise<any>

- - Defined in src/view-model/AtomViewModel.ts:54

  Useful only for Unit testing, this function will await till initialization is complete and all pending functions are executed

  #### Parameters

  - ##### vm: AtomViewModel

  #### Returns Promise<any>

Generated using TypeDoc