Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit a433aae

Browse files
author
Dean Sofer
committed
Updated readme
1 parent 2f4c6b4 commit a433aae

File tree

5 files changed

+43
-23
lines changed

5 files changed

+43
-23
lines changed

‎README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,27 @@ git clone git://github.com/ProLoser/AngularJs.tmbundle.git ~/Library/Application
1313
1. [Download](https://github.com/ProLoser/AngularJs.tmbundle/zipball/master) the code
1414
2. Extract the package
1515
3. Rename the folder to 'AngularJs.tmbundle' and choose __Use .tmbundle Extension__
16-
4. Double click on the new folder and TextMate will handle the rest!gi
16+
4. Double click on the new folder and TextMate will handle the rest!
17+
18+
## Tab Triggers
19+
20+
#### Html
21+
* __repeat__
22+
* __switch + when + default__
23+
* __show + hide__
24+
* __plural__ pluralize
25+
* __options__
26+
* __view__
27+
* __inc__ include
28+
29+
#### Javascript
30+
* __is__ for isArray, isObject, etc
31+
* __lower__ lowercase
32+
* __upper__ uppercase
33+
* __mod + dir__ new module or directive template
34+
* __noop__
35+
* __extend__
36+
* __each__ forEach
37+
* __http__
38+
* __watch__
39+
* __digest__

‎Snippets/$xhr.tmSnippet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
<plist version="1.0">
44
<dict>
55
<key>content</key>
6-
<string>\$xhr('${1:GET|POST|PUT|DELETE}', ${2:url}${3:, ${4:post}}, ${5:function(status, response){
6+
<string>\$http('${1:GET|POST|PUT|DELETE}', ${2:url}${3:, ${4:post}}, ${5:function(status, response){
77
${6:// success}
88
}}${7:, function(status, response){
99
${8:// error}
1010
}});</string>
1111
<key>name</key>
12-
<string>$xhr</string>
12+
<string>$http</string>
1313
<key>scope</key>
1414
<string>source.js</string>
1515
<key>tabTrigger</key>
16-
<string>xhr</string>
16+
<string>http</string>
1717
<key>uuid</key>
1818
<string>E9361F3F-CF03-4D58-B67F-AC9C775209AD</string>
1919
</dict>

‎Snippets/widget.tmSnippet renamed to ‎Snippets/module.tmSnippet

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,18 @@
44
<dict>
55
<key>content</key>
66
<string>/**
7-
* 1ドル Widget
7+
* 1ドル Module
88
*
9-
* ${4:Description}
9+
* ${2:Description}
1010
*/
11-
angular.directive('1ドル', function(${2:expression, }compiler){
12-
3ドル
13-
return function(linkElement) {
14-
4ドル
15-
};
16-
});</string>
11+
angular.module('1ドル', [3ドル]).0ドル</string>
1712
<key>name</key>
18-
<string>widget</string>
13+
<string>module</string>
1914
<key>scope</key>
2015
<string>source.js</string>
2116
<key>tabTrigger</key>
22-
<string>directive</string>
17+
<string>mod</string>
2318
<key>uuid</key>
24-
<string>D366BEBF-AE19-44FF-9944-F571F5430B4D</string>
19+
<string>231D752E-BDB7-426B-8AF3-E765E7A08FC3</string>
2520
</dict>
2621
</plist>

‎Snippets/untitled.tmSnippet

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,22 @@
66
<string>/**
77
* 1ドル Directive
88
*
9-
* ${4:Description}
9+
* ${2:Description}
1010
*/
11-
angular.directive('1ドル', function(expression, compiledElement){
12-
2ドル
13-
return function(linkElement) {
14-
3ドル
11+
directive('1ドル', [${3:'4ドル', }function(4ドル){
12+
// Runs during compile
13+
5ドル
14+
return function(scope, elm, attrs) {
15+
// Runs during render
16+
6ドル
1517
};
16-
});</string>
18+
}]);</string>
1719
<key>name</key>
1820
<string>directive</string>
1921
<key>scope</key>
2022
<string>source.js</string>
2123
<key>tabTrigger</key>
22-
<string>directive</string>
24+
<string>dir</string>
2325
<key>uuid</key>
2426
<string>F2229C28-5177-48A3-B07A-08742BC65A24</string>
2527
</dict>

‎info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<string>3DAF207C-5321-4B5D-ACD1-E01A96D57EF5</string>
2222
<string>2A7D544B-2A8C-4C45-A9EF-D08574E1FBDD</string>
2323
<string>F2229C28-5177-48A3-B07A-08742BC65A24</string>
24+
<string>231D752E-BDB7-426B-8AF3-E765E7A08FC3</string>
2425
<string>CC8582E5-1F66-4BFB-920C-55921CF4FCDA</string>
2526
<string>58BD7093-5664-46AC-BD2E-F4F5BEDC4852</string>
2627
<string>E9361F3F-CF03-4D58-B67F-AC9C775209AD</string>
@@ -34,7 +35,6 @@
3435
<string>E6D2486E-5BE6-41D6-92D9-0CCD59E8AEA8</string>
3536
<string>8B9A3861-74DF-4A9D-B508-255C49F527BE</string>
3637
<string>AB8316EE-388D-4EB2-AF54-1A76E792BC62</string>
37-
<string>D366BEBF-AE19-44FF-9944-F571F5430B4D</string>
3838
</array>
3939
<key>uuid</key>
4040
<string>169EEC8E-A42C-4C5A-90D7-00AA3F18283D</string>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /