Skip to content

Instantly share code, notes, and snippets.

@codediodeio
Created April 6, 2018 19:13
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 codediodeio/e31a9cef40e115a057332dd2b975e3df to your computer and use it in GitHub Desktop.
Save codediodeio/e31a9cef40e115a057332dd2b975e3df to your computer and use it in GitHub Desktop.
@State<AppStateModel>({
name: 'app',
defaults: {
hello: '',
}
})
export class AppState {}
export class SaladState extends AppState {
@Select()
static getSomething(state: any) { // <-- can I strong type state?
return state.salad.dressing;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment