Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).