-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ff3e52
commit cfd1fcd
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
tests/fixtures/typescript/my-addon/src/components/co-located-ts.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
import Component from '@glimmer/component'; | ||
import { service } from '@ember/service'; | ||
import Example from '../services/example'; | ||
|
||
export default class CoLocatedTs extends Component { | ||
@service declare example: Example; | ||
|
||
whereAmI = 'from a co-located TS component'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Service from '@ember/service'; | ||
|
||
export default class Example extends Service { | ||
foo = 'hello from service'; | ||
} |