Fix few documentation typos and ensure examples use `this`
MODIFY
tests/dummy/app/templates/docs/fastboot.md
tests/dummy/app/templates/docs/fastboot.md
@@ -8,12 +8,12 @@ In practical terms, if you need the code that was originally deferred to be run
```js
import Component from '@glimmer/component';
-import { importantThingToDo } 'bag-of-important-things';
+import { importantThingToDo } from 'bag-of-important-things';
import { whenRouteIdle } from 'ember-app-scheduler';
export default class ImportantComponent extends Component {
constructor() {
- if (typeof FastBoot !=== 'undefined') {
+ if (typeof FastBoot !== 'undefined') {
importantThingToDo();
} else {
whenRouteIdle().then(() => {

MODIFY
tests/dummy/app/templates/docs/testing.md
tests/dummy/app/templates/docs/testing.md
@@ -32,7 +32,7 @@ export default class ComponentWithDeferredStuff extends Component {
```handlebars
{{! component-with-deferred-stuff.hbs }}
-{{#if showHiddenContent}}
+{{#if this.showHiddenContent}}
{{yield}}
{{/if}}
```
@@ -86,7 +86,7 @@ import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { whenRouteIdle } from 'ember-app-scheduler';
-export default WhenRouteIdle extends Component {
+export default class WhenRouteIdle extends Component {
@tracked whenRouteIdle;
constructor() {
@@ -103,7 +103,7 @@ export default WhenRouteIdle extends Component {
```handlebars
{{! when-route-idle.hbs }}
-{{#if whenRouteIdle}}
+{{#if this.whenRouteIdle}}
{{yield}}
{{/if}}
```

MODIFY
tests/integration/deferred-render-in-component-test.js
tests/integration/deferred-render-in-component-test.js
@@ -46,7 +46,7 @@ module(
this.owner.register(
'template:components/deferred-render',
- hbs`{{#if showFoo}}<span class="foo">I can haz visibility</span>{{/if}}`
+ hbs`{{#if this.showFoo}}<span class="foo">I can haz visibility</span>{{/if}}`
);
beginTransition();

Fix few documentation typos and ensure examples use `this` (#1121)