npm.io
2.1.1 • Published 2 months ago

@glimmer/component

Licence
MIT
Version
2.1.1
Deps
2
Size
70 kB
Vulns
0
Weekly
0
Stars
22.6K

@glimmer/component

npm version CI

Installation

Add this package to your project:

npm install --save-dev @glimmer/component

Usage

To use this in a Glimmer application, import the package and export an extended class:

import Component from '@glimmer/component';

export default class MyComponent extends Component {
  get doubled() {
    return this.args.foo * 2;
  }

  <template>
    {{@foo}} * 2 === {{this.doubled}}
  </template>
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/emberjs/ember.js

License

MIT License.

Keywords