Skip to content
Browse files

adding initial snippets

  • Loading branch information...
1 parent ce1665c commit 2898ab4404c29befadc2d72d7331b1cb14caeb88 @aaronpowell committed Oct 19, 2011
View
6 ko.applyBidnings.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[ko.applyBindings(${1:vm}, ${2:element});]]></content>
+ <tabTrigger>ko.apply</tabTrigger>
+ <scope>source.js</scope>
+ <description>kockoutjs apply bindings</description>
+</snippet>
View
8 ko.dependentObservable.sublime-snippet
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[ko.dependentObserable(function() \{
+ $0
+ \}, ${1:this});]]></content>
+ <tabTrigger>ko.dep</tabTrigger>
+ <scope>source.js</scope>
+ <description>kockoutjs dependent observable</description>
+</snippet>
View
6 ko.observable.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[ko.observable($0);]]></content>
+ <tabTrigger>ko.o</tabTrigger>
+ <scope>source.js</scope>
+ <description>kockoutjs observable</description>
+</snippet>
View
6 ko.observableArray.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[ko.observableArray($0);]]></content>
+ <tabTrigger>ko.[]</tabTrigger>
+ <scope>source.js</scope>
+ <description>kockoutjs observable array</description>
+</snippet>
View
8 simple-viewModel.sublime-snippet
@@ -0,0 +1,8 @@
+<snippet>
+ <content><![CDATA[var vm = new function() {
+ ${1:this.foo = ko.observable();}$0
+ };]]></content>
+ <tabTrigger>ko.vm</tabTrigger>
+ <scope>source.js</scope>
+ <description>simple kockoutjs viewModel</description>
+</snippet>

0 comments on commit 2898ab4

Please sign in to comment.
Something went wrong with that request. Please try again.