Skip to content

Instantly share code, notes, and snippets.

@timdeschryver
Created April 8, 2019 17:30
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 timdeschryver/bad232582c01edd4aaffaee1ac9ccfc3 to your computer and use it in GitHub Desktop.
Save timdeschryver/bad232582c01edd4aaffaee1ac9ccfc3 to your computer and use it in GitHub Desktop.
VSCode snippets
{
"NgRx Action": {
"scope": "typescript",
"prefix": "ca",
"description": "Creates an NgRx Action",
"body": ["export const ${1:action} = createAction('[${2:Source}] ${3:Event}');"]
},
"NgRx Action with props": {
"scope": "typescript",
"prefix": "cap",
"description": "Creates an NgRx Action with props",
"body": ["export const ${1:action} = createAction('[${2:Source}] ${3:Event}', props<{${4:key}: ${5:type}}>());"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment