Skip to content

Commit 842eabb

Browse files
committed
Add a router config snippet
1 parent 61efaa7 commit 842eabb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<snippet>
2+
<content><![CDATA[
3+
import { RouterConfig } from '@angular/router';
4+
5+
export const ${1:component}Routes: RouterConfig = [
6+
{ path: '', component: ComponentName }
7+
]
8+
]]></content>
9+
<tabTrigger>ng2-router-config</tabTrigger>
10+
<scope>source.ts,source.tsx,source.js</scope>
11+
<description>Angular 2 Router Config Snippet</description>
12+
</snippet>

0 commit comments

Comments
 (0)