Skip to content

Instantly share code, notes, and snippets.

@chidumennamdi
Created August 22, 2018 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chidumennamdi/412a6c0f15292f06976135a4d1edb690 to your computer and use it in GitHub Desktop.
Save chidumennamdi/412a6c0f15292f06976135a4d1edb690 to your computer and use it in GitHub Desktop.
export const enum ViewState {
BeforeFirstCheck = 1 << 0,
FirstCheck = 1 << 1,
Attached = 1 << 2,
ChecksEnabled = 1 << 3,
...
CatDetectChanges = Attached | ChecksEnabled,
➥CatInit = BeforeFirstCheck | CatDetectChanges | InitState_BeforeInit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment