Skip to content

Commit ebdc61f

Browse files
committed
Merge pull request honza#346 from RyanPineo/master
Javascript: Add angular snippets.
2 parents c17df81 + b1af469 commit ebdc61f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

UltiSnips/javascript_angular.snippets

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
priority -50
2+
3+
snippet iti "it (js, inject)" b
4+
it('${1:description}', inject(function($2) {
5+
$0
6+
}));
7+
endsnippet
8+
9+
snippet befi "before each (js, inject)" b
10+
beforeEach(inject(function($1) {
11+
$0
12+
}));
13+
endsnippet
14+
15+
snippet aconf "angular config" i
16+
config(function($1) {
17+
$0
18+
});
19+
endsnippet
20+
21+
snippet acont "angular controller" i
22+
controller('${1:name}', function($2) {
23+
$0
24+
});
25+
endsnippet

0 commit comments

Comments
 (0)