@glimmer/tracking
Installation
Add this package to your project with Yarn:
yarn add -D @glimmer/tracking
Or alternatively with npm:
npm install --save-dev @glimmer/tracking
Usage
To use this in a Glimmer application, import the package and export an extended class:
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
export default class MyComponent extends Component {
@tracked foo;
}
Development
For the development of this project, Yarn is preferred over npm. However, any Yarn command can be replaced by the npm equivalent.
See Migration from npm in the Yarn documentation for a list of the equivalent commands.
- Clone repository locally:
git clone https://github.com/glimmerjs/glimmer-component.git
- Install dependencies:
yarn
, or yarn install
- Open project in your editor of choice and make your changes
- Run tests:
yarn run test
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/glimmerjs/glimmer-component.
Acknowledgements
Thanks to Monegraph for funding the initial development
of this library.
License
MIT License.