Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lifeart/ember-on-modifier-sugar
Syntax sugar for on-modifier event binding
https://github.com/lifeart/ember-on-modifier-sugar
ember ember-addon event-binding
Last synced: 9 days ago
JSON representation
Syntax sugar for on-modifier event binding
- Host: GitHub
- URL: https://github.com/lifeart/ember-on-modifier-sugar
- Owner: lifeart
- License: mit
- Created: 2019-09-20T19:52:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T06:35:39.000Z (about 2 years ago)
- Last Synced: 2024-10-03T12:23:53.403Z (3 months ago)
- Topics: ember, ember-addon, event-binding
- Language: JavaScript
- Size: 1.1 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-on-modifier-sugar
==============================================================================This addon provides syntax sugar for `on` and `fn` modifiers usage.
```hbs
ClickMe
```
to
```hbs
ClickMe
```
also, string angular-like notation supported:
```hbs
ClickMe
```
will be transformed to
```hbs
ClickMe
```
Simple expressions, like
```hbs
ClickMe
```
will be transformed to
```hbs
ClickMe
```
---
Restrictions
----This is `Not` JavaScript! This code will not work:
```hbs
ClickMe
```
Compatibility
------------------------------------------------------------------------------* Ember.js v3.10 or above
* Ember CLI v2.13 or above
* Node.js v8 or aboveInstallation
------------------------------------------------------------------------------```
ember install ember-on-modifier-sugar
```Usage
------------------------------------------------------------------------------Just install it and use simple event bindings!
Contributing
------------------------------------------------------------------------------See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).