Skip to content

Commit e8ce284

Browse files
authored
Merge pull request ember-learn#636 from dennismende/octane-ember-data-guides-review-non-mu-file-paths
ember-learn#588 - octane - guides update - non MU file paths
2 parents 1b15fd1 + cf6ac42 commit e8ce284

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

guides/release/components/displaying-data.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ like you would in JavaScript.
2929
For the example, we will build a `Greeting` component with a hard-coded name.
3030
Then, we will use that property in the component template:
3131

32-
```javascript {data-filename=src/ui/components/greeting/component.js}
32+
```javascript {data-filename=app/components/greeting.js}
3333
import Component from '@glimmer/component';
3434

3535
export default class Greeting extends Component {
@@ -41,7 +41,7 @@ export default class Greeting extends Component {
4141
}
4242
```
4343

44-
```handlebars {data-filename=src/ui/components/greeting/template.hbs}
44+
```handlebars {data-filename=app/templates/components/greeting.hbs}
4545
<p>Hello World, I'm {{this.name}}!</p>
4646
```
4747

guides/release/state-management/tracked-properties.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ When Ember first renders a component, it renders the initial _state_ of that
22
component - the state of the instance, and state of the arguments that are
33
passed to it:
44

5-
```hbs {data-filename=src/ui/components/hello/template.hbs}
5+
```hbs {data-filename=app/templates/components/hello.hbs}
66
{{this.greeting}}, {{@name}}!
77
```
88

9-
```js {data-filename=src/ui/components/hello/component.js}
9+
```js {data-filename=app/components/hello.js}
1010
import Component from '@glimmer/component';
1111

1212
export default class Hello extends Component {
@@ -25,7 +25,7 @@ export default class Hello extends Component {
2525
}
2626
```
2727

28-
```hbs {data-filename=src/ui/routes/application/template.hbs}
28+
```hbs {data-filename=app/templates/application.hbs}
2929
<Hello @name="Jen Weber">
3030
```
3131

@@ -52,7 +52,7 @@ Trackable values are values that:
5252

5353
We can do this by marking the field with the `@tracked` decorator:
5454

55-
```js {data-filename=src/ui/components/hello/component.js}
55+
```js {data-filename=app/components/hello.js}
5656
import Component from '@glimmer/component';
5757
import { tracked } from '@glimmer/tracking';
5858

@@ -88,7 +88,7 @@ Tracked properties can be updated like any other property, using standard
8888
JavaScript syntax. The primary way that state gets updated in an Ember
8989
application is via _actions_, [as discussed earlier](../../templates/actions/):
9090

91-
```hbs {data-filename=src/ui/components/hello/template.hbs}
91+
```hbs {data-filename=app/templates/components/hello.hbs}
9292
{{this.greeting}}, {{@name}}!
9393
9494
<select onchange={{this.updateLanguage}}>
@@ -98,7 +98,7 @@ application is via _actions_, [as discussed earlier](../../templates/actions/):
9898
</select>
9999
```
100100

101-
```js {data-filename=src/ui/components/hello/component.js}
101+
```js {data-filename=app/components/hello.js}
102102
import Component from '@glimmer/component';
103103
import { tracked } from '@glimmer/tracking';
104104
import { action } from '@ember/object';
@@ -228,7 +228,7 @@ export default class Person {
228228
}
229229
```
230230

231-
```js {data-filename=src/ui/routes/application/route.js}
231+
```js {data-filename=app/routes/application.js}
232232
import Route from '@ember/routing/route';
233233
import Person from '../../../../utils/person';
234234

@@ -239,7 +239,7 @@ export default class ApplicationRoute extends Route {
239239
}
240240
```
241241

242-
```js {data-filename=src/ui/routes/application/controller.js}
242+
```js {data-filename=app/controllers/application.js}
243243
import Controller from '@ember/controller';
244244
import { action } from '@ember/object';
245245

@@ -252,7 +252,7 @@ export default class ApplicationController extends Controller {
252252
}
253253
```
254254

255-
```js {data-filename=src/ui/routes/application/template.hbs}
255+
```js {data-filename=app/templates/application.hbs}
256256
{{this.model.fullName}}
257257

258258
<button onclick={{action this.updateName 'Krati' 'Ahuja'}}>

0 commit comments

Comments
 (0)