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: 4 months 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 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T06:35:39.000Z (over 3 years ago)
- Last Synced: 2025-09-06T20:59:28.784Z (9 months ago)
- Topics: ember, ember-addon, event-binding
- Language: JavaScript
- Size: 1.1 MB
- Stars: 1
- Watchers: 2
- 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 above
Installation
------------------------------------------------------------------------------
```
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).