Skip to content

Instantly share code, notes, and snippets.

@splincode
Last active May 17, 2020 16:59
Show Gist options
  • Save splincode/c0565c9cbd07f14dcbc95008a83e8c4a to your computer and use it in GitHub Desktop.
Save splincode/c0565c9cbd07f14dcbc95008a83e8c4a to your computer and use it in GitHub Desktop.
@State({
name: 'counter',
defaults: 0
})
@Injectable()
class CounterState implements NgxsOnChanges, NgxsOnInit, NgxsAfterBootstrap {
public ngxsOnChanges(): void {
// ..
}
public ngxsOnInit(): void {
// ..
}
public ngxsAfterBootstrap(): void {
// ..
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment