Skip to content

Commit 1bf223f

Browse files
committed
Add haml version of ng-model to UltiSnips, and both version to snippets.
1 parent 3c27183 commit 1bf223f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

UltiSnips/haml/angular_haml.snippets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ snippet ngb "A binding in AngularJS"
2626
endsnippet
2727

2828

29+
snippet ngm "Bind a view to a model"
30+
ng-model="${1:model}"$0
31+
endsnippet
32+
33+
2934
# vim:ft=snippets:

snippets/haml/angular_haml.snippets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ snippet ngst
1616
# A binding in AngularJS
1717
snippet ngb
1818
{{${1:binding}}}${2}
19+
# Bind a view to a model
20+
snippet ngm
21+
ng-model="${1:model}"

snippets/html/angular_html.snippets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ snippet ngst
2323
# A binding in AngularJS
2424
snippet ngb
2525
{{${1:binding}}}${2}
26+
# Bind a view to a model
27+
snippet ngm
28+
ng-model="${1:model}"

0 commit comments

Comments
 (0)