JSPM

  • Created
  • Published
  • Downloads 121381
  • Score
    100M100P100Q166420F
  • License MIT

Glimmer property tracking library

Package Exports

  • @glimmer/tracking
  • @glimmer/tracking/dist/commonjs/es5/index.js
  • @glimmer/tracking/dist/modules/es2017/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@glimmer/tracking) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@glimmer/tracking

npm version Build Status

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.