<commit_before># aurelia-async

[![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This library is an **experimental** plugin for the [Aurelia](http://www.aurelia.io/) platform enabling asynchronous data-binding.  The current version supports binding to Promises only.  Other async patterns are planned for future releases.

## Usage:

Binding to a promised value:
```html
Hello ${worldPromise..value}
```

Binding to a promise's state:
```html
<span show.bind="worldPromise..ready">Hello ${worldPromise..value}</span>
```<commit_msg>Rx observable support<commit_after># aurelia-async

[![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This library is an **experimental** plugin for the [Aurelia](http://www.aurelia.io/) platform enabling asynchronous data-binding.  The current version supports binding to Rx Observables and Promises.  Other async patterns are planned for future releases.

## Usage:

Binding to an Rx observable:
```html
<template>
  ${mouse..value.clientX}, ${mouse..value.clientY}
</template>
```
```javascript
import Rx from 'rx';

export class App {
  mouse = Rx.Observable.fromEvent(document, 'mousemove');
}
```

Binding to a promised value:
```html
Hello ${worldPromise..value}
```

Binding to a promise's state:
```html
<span show.bind="worldPromise..ready">Hello ${worldPromise..value}</span>
```
{'fraction_non_alphanumeric': 0.14948139109212935, 'fraction_numerical': 0.0024405125076266015, 'mean_word_length': 5.776859504132231, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1609150', 'n_tokens_mistral': 551, 'n_tokens_neox': 512, 'n_words': 133}