https://github.com/ember-polyfills/ember-named-arguments-polyfill
Polyfills support for named arguments for Ember 2.10 through 3.0.
https://github.com/ember-polyfills/ember-named-arguments-polyfill
Last synced: 10 months ago
JSON representation
Polyfills support for named arguments for Ember 2.10 through 3.0.
- Host: GitHub
- URL: https://github.com/ember-polyfills/ember-named-arguments-polyfill
- Owner: ember-polyfills
- License: mit
- Created: 2018-06-06T20:33:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-16T08:43:32.000Z (about 6 years ago)
- Last Synced: 2025-08-20T20:14:04.942Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 430 KB
- Stars: 18
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ember - ember-named-arguments-polyfill - Polyfills support for named arguments for Ember.js 2.10 through 3.0. (Packages / Polyfills)
README
ember-named-arguments-polyfill
==============================================================================
Polyfills the [named arguments feature](https://github.com/emberjs/rfcs/blob/master/text/0276-named-args.md) to work for Ember 2.10+. This is convienient for addon authors to be able to start leveraging named arguments without requiring that all of its users are on Ember 3.1 or higher.
[](https://travis-ci.org/rwjblue/ember-named-arguments-polyfill)
Installation
------------------------------------------------------------------------------
```
ember install ember-named-arguments-polyfill
```
Usage
------------------------------------------------------------------------------
"Just use them!"
In a component's template that receives an argument named `foo` you can now do:
```hbs
{{@foo}}
```
🎉
Contributing
------------------------------------------------------------------------------
### Installation
* `git clone `
* `cd ember-named-arguments-polyfill`
* `yarn install`
### Linting
* `yarn lint:js`
* `yarn lint:js --fix`
### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions
### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).