We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a94a5e commit 5fb82cbCopy full SHA for 5fb82cb
snippets/typescript.json
@@ -108,7 +108,7 @@
108
"description": "Angular - subscribe to routing parameters",
109
"body": [
110
"this.route.paramMap",
111
- "\t.pipe(switchMap(params => params.get('id')), tap(id => (this.id = +id)))",
+ "\t.pipe(map(params => params.get('id')), tap(id => (this.id = +id)))",
112
"\t.subscribe(id => {$1});",
113
"$0"
114
]
0 commit comments