File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
packages/@glimmer/component Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ # @glimmer/component
2
+
3
+ [ ![ npm version] ( https://badge.fury.io/js/%40glimmer%2Fcomponent.svg )] ( https://badge.fury.io/js/%40glimmer%2Fcomponent )
4
+ [ ![ CI] ( https://github.com/emberjs/ember.js/workflows/CI/badge.svg )] ( https://github.com/emberjs/ember.js/actions?query=workflow%3ACI )
5
+
6
+ ## Installation
7
+
8
+ Add this package to your project:
9
+
10
+ ``` bash
11
+ npm install --save-dev @glimmer/component
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ To use this in a Glimmer application, import the package and export an extended class:
17
+
18
+ ``` glimmer-ts
19
+ import Component from '@glimmer/component';
20
+
21
+ export default class MyComponent extends Component {
22
+ get doubled() {
23
+ return this.args.foo * 2;
24
+ }
25
+
26
+ <template>
27
+ {{@foo}} * 2 === {{this.doubled}}
28
+ </template>
29
+ }
30
+ ```
31
+
32
+ ## Contributing
33
+
34
+ Bug reports and pull requests are welcome on GitHub at https://github.com/emberjs/ember.js
35
+
36
+ ## License
37
+
38
+ MIT License.
You can’t perform that action at this time.
0 commit comments