@@ -9,13 +9,15 @@ npx ember-tracked-properties-codemod path/of/files/ or/some**/*glob.js
99## Input / Output
1010
1111<!-- FIXTURES_TOC_START-->
12- * [ basic-with-prefix-false] ( #basic-with-prefix-false )
13- * [ basic] ( #basic )
14- * [ chained-complex-computed] ( #chained-complex-computed )
15- * [ chained-computed] ( #chained-computed )
16- * [ complex] ( #complex )
17- * [ with-tracked] ( #with-tracked )
18- <!-- FIXTURES_TOC_END-->
12+
13+ - [ basic-with-prefix-false] ( #basic-with-prefix-false )
14+ - [ basic] ( #basic )
15+ - [ chained-complex-computed] ( #chained-complex-computed )
16+ - [ chained-computed] ( #chained-computed )
17+ - [ complex] ( #complex )
18+ - [ non-computed-decorators] ( #non-computed-decorators )
19+ - [ with-tracked] ( #with-tracked )
20+ <!-- FIXTURES_TOC_END-->
1921
2022## <!-- FIXTURES_CONTENT_START-->
2123
@@ -269,6 +271,65 @@ export default class AddTeamComponent extends Component {
269271
270272---
271273
274+ <a id =" non-computed-decorators " >** non-computed-decorators** </a >
275+
276+ ** Input** (<small >[ non-computed-decorators.input.js] ( __testfixtures__/non-computed-decorators.input.js ) </small >):
277+
278+ ``` js
279+ import Component from ' @ember/component' ;
280+ import { computed , get } from ' @ember/object' ;
281+ import { alias } from ' @ember/object/computed' ;
282+
283+ export default class Foo extends Component {
284+ bar;
285+ // baz class property
286+ baz = ' barBaz' ;
287+
288+ @alias (' model.isFoo' )
289+ isFoo;
290+
291+ @computed (' baz' , ' isFoo' )
292+ get bazInfo () {
293+ return get (this , ' isFoo' ) ? ` Name: ${ get (this , ' baz' )} ` : ' Baz' ;
294+ }
295+
296+ @computed (' bar' , ' isFoo' ).readOnly ()
297+ get barInfo () {
298+ return get (this , ' isFoo' ) ? ` Name: ${ get (this , ' bab' )} ` : ' Bar' ;
299+ }
300+ }
301+ ```
302+
303+ ** Output** (<small >[ non-computed-decorators.output.js] ( __testfixtures__/non-computed-decorators.output.js ) </small >):
304+
305+ ``` js
306+ import { tracked } from ' @glimmer/tracking' ;
307+ import Component from ' @ember/component' ;
308+ import { computed , get } from ' @ember/object' ;
309+ import { alias } from ' @ember/object/computed' ;
310+
311+ export default class Foo extends Component {
312+ bar;
313+ // baz class property
314+ @tracked baz = ' barBaz' ;
315+
316+ @alias (' model.isFoo' )
317+ isFoo;
318+
319+ @computed (' isFoo' )
320+ get bazInfo () {
321+ return get (this , ' isFoo' ) ? ` Name: ${ get (this , ' baz' )} ` : ' Baz' ;
322+ }
323+
324+ @computed (' bar' , ' isFoo' ).readOnly ()
325+ get barInfo () {
326+ return get (this , ' isFoo' ) ? ` Name: ${ get (this , ' bab' )} ` : ' Bar' ;
327+ }
328+ }
329+ ```
330+
331+ ---
332+
272333<a id =" with-tracked " >** with-tracked** </a >
273334
274335** Input** (<small >[ with-tracked.input.js] ( __testfixtures__/with-tracked.input.js ) </small >):
0 commit comments