File tree Expand file tree Collapse file tree 5 files changed +85
-66
lines changed Expand file tree Collapse file tree 5 files changed +85
-66
lines changed Original file line number Diff line number Diff line change 1+ ## 1.0.0
2+ * Add ` Ember.computed.alias ` snippet
3+ * Split snippets into different files
4+ * Fix package version number
5+
16## 0.3.1
27* Fix ember-data snippets importing ` DS ` instead ` ember-data `
38
49## 0.3.0
5- * Add Object snippet
10+ * Add ` Ember. Object` snippet
611* Fix view snippet
712
813## 0.2.0
Original file line number Diff line number Diff line change @@ -24,11 +24,14 @@ Then reload your Atom.
2424- ` component ` ⇥
2525- ` controller ` ⇥
2626- ` helper ` ⇥
27+ - ` initializer ` ⇥
2728- ` mixin ` ⇥
2829- ` model ` ⇥
30+ - ` object ` ⇥
2931- ` route ` ⇥
3032- ` serializer ` ⇥
3133- ` transform ` ⇥
34+ - ` utility ` ⇥
3235- ` view ` ⇥
3336
3437Example output for ` controller ` ⇥
@@ -48,6 +51,7 @@ Used inside Ember objects
4851- ` property ` ⇥
4952- ` observes ` ⇥
5053- ` actions ` ⇥
54+ - ` alias ` ⇥
5155
5256Example output for ` observes ` ⇥
5357
Original file line number Diff line number Diff line change 1+ # Ember Functions snippets
2+ #
3+ # Examples
4+ #
5+ # `ember<tab>`
6+ #
7+
8+ ' .source.js' :
9+
10+ ' Ember Find' :
11+ ' prefix' : ' find'
12+ ' body' : " this.store.find('${1:model}');"
13+
14+ ' Ember Find by id' :
15+ ' prefix' : ' find-id'
16+ ' body' : " this.store.find('${1:model}', params.${1:model}_id);"
17+
18+ ' Ember Logger Debug' :
19+ ' prefix' : ' logger-debug'
20+ ' body' : " Ember.Logger.debug('${1:message}');"
21+
22+ ' Ember Logger Log' :
23+ ' prefix' : ' logger-log'
24+ ' body' : " Ember.Logger.log('${1:message}');"
25+
26+ ' Ember Logger Info' :
27+ ' prefix' : ' logger-info'
28+ ' body' : " Ember.Logger.info('${1:message}');"
29+
30+ ' Ember Logger Warn' :
31+ ' prefix' : ' logger-warn'
32+ ' body' : " Ember.Logger.warn('${1:message}');"
33+
34+ ' Ember Logger Error' :
35+ ' prefix' : ' logger-error'
36+ ' body' : " Ember.Logger.error('${1:message}');"
Original file line number Diff line number Diff line change 1- # Ember snippets
1+ # Ember Modules snippets
22#
33# Examples
44#
77
88' .source.js' :
99
10- #
11- # Modules
12- #
13-
1410 ' Ember Route' :
1511 ' prefix' : ' route'
1612 ' body' : """
171167 ${2:// body}
172168 };
173169 """
174-
175- #
176- # Properties
177- #
178-
179- ' Ember Computed Property' :
180- ' prefix' : ' property'
181- ' body' : """
182- ${1:fooCount}: function() {
183- ${3:// body}
184- }.property('${2:property}'),
185- """
186-
187- ' Ember Observer' :
188- ' prefix' : ' observes'
189- ' body' : """
190- ${1:fooChanged}: function() {
191- ${3:// body}
192- }.observes('${2:property}'),
193- """
194-
195- ' Ember Actions' :
196- ' prefix' : ' actions'
197- ' body' : """
198- actions: {
199- ${1:// body}
200- }
201- """
202-
203- #
204- # Functions
205- #
206-
207- ' Ember Find' :
208- ' prefix' : ' find'
209- ' body' : " this.store.find('${1:model}');"
210-
211- ' Ember Find by id' :
212- ' prefix' : ' find-id'
213- ' body' : " this.store.find('${1:model}', params.${1:model}_id);"
214-
215- ' Ember Logger Debug' :
216- ' prefix' : ' logger-debug'
217- ' body' : " Ember.Logger.debug('${1:message}');"
218-
219- ' Ember Logger Log' :
220- ' prefix' : ' logger-log'
221- ' body' : " Ember.Logger.log('${1:message}');"
222-
223- ' Ember Logger Info' :
224- ' prefix' : ' logger-info'
225- ' body' : " Ember.Logger.info('${1:message}');"
226-
227- ' Ember Logger Warn' :
228- ' prefix' : ' logger-warn'
229- ' body' : " Ember.Logger.warn('${1:message}');"
230-
231- ' Ember Logger Error' :
232- ' prefix' : ' logger-error'
233- ' body' : " Ember.Logger.error('${1:message}');"
Original file line number Diff line number Diff line change 1+ # Ember Properties snippets
2+ #
3+ # Examples
4+ #
5+ # `ember<tab>`
6+ #
7+
8+ ' .source.js' :
9+
10+ ' Ember Computed Property' :
11+ ' prefix' : ' property'
12+ ' body' : """
13+ ${1:fooCount}: function() {
14+ ${3:// body}
15+ }.property('${2:property}'),
16+ """
17+
18+ ' Ember Observer' :
19+ ' prefix' : ' observes'
20+ ' body' : """
21+ ${1:fooChanged}: function() {
22+ ${3:// body}
23+ }.observes('${2:property}'),
24+ """
25+
26+ ' Ember Actions' :
27+ ' prefix' : ' actions'
28+ ' body' : """
29+ actions: {
30+ ${1:// body}
31+ }
32+ """
33+
34+ ' Ember Computed Alias' :
35+ ' prefix' : ' alias'
36+ ' body' : """
37+ ${1:foo}: Ember.computed.alias('${2:property}'),
38+ """
You can’t perform that action at this time.
0 commit comments