<commit_before># aurelia-fire
A Firebase adapter for Aurelia

# Install
```
jspm install aurelia-fire=github:edmulraney/angular-fire
```

# Usage
```
import Firebase from 'firebase';
import {FirebaseArray} from 'aurelia-fire';

export class Example {
  constructor(){
    this.firebaseRef = new Firebase('https://INSTANCE.firebaseio.com/people');
    this.people = new FirebaseArray(this.firebaseRef);
  }

  add() {
    let rand = Math.floor(Math.random() * 1000) + 1;
    let name = Math.random().toString(36).substring(7);
    this.people.add({Id: rand, Name: name});
  }

  remove(id) {
    this.people.remove(id);
  }


  update() {
    this.people[0].Name = "rename-" + Math.random().toString(36).substring(5);
    this.people.save(this.plants[0]);
  }
}
```

# Todo
- Tests
- FirebaseObject
- Authentication
- Extract FirebaseUtils into proper classes
- Documentation<commit_msg>Updated readme with array binding example<commit_after># aurelia-fire
A Firebase adapter for Aurelia

# Install
```
jspm install aurelia-fire=github:edmulraney/angular-fire
```

# Usage
```
import Firebase from 'firebase';
import {FirebaseArray} from 'aurelia-fire';

export class Example {
  constructor(){
    this.firebaseRef = new Firebase('https://INSTANCE.firebaseio.com/people');
    this.people = new FirebaseArray(this.firebaseRef);
  }

  add() {
    let id = Math.floor(Math.random() * 1000) + 1;
    let name = Math.random().toString(36).substring(7);
    this.people.add({Id: id, Name: name});
  }

  remove(id) {
    this.people.remove(id);
  }


  update() {
    this.people[0].Name = "rename-" + Math.random().toString(36).substring(5);
    this.people.save(this.people[0]);
  }
}
```

# Todo
- Tests
- FirebaseObject
- Authentication
- Extract FirebaseUtils into proper classes
- Documentation
{'fraction_non_alphanumeric': 0.15478841870824053, 'fraction_numerical': 0.014476614699331848, 'mean_word_length': 3.9098360655737703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '6658591', 'n_tokens_mistral': 638, 'n_tokens_neox': 604, 'n_words': 124}