Skip to content

Commit

Permalink
Ny Continuous Integration Travis-CI . Please approve my repository 😥
Browse files Browse the repository at this point in the history
  • Loading branch information
abdennour committed Jun 8, 2017
1 parent 5d28e14 commit cecc8c3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
@@ -1 +1 @@
repo_token: YYYYYYY
repo_token: NcrncOyBKnd6fEIMGeAcHFlPGRZJeKWhJ
23 changes: 17 additions & 6 deletions README.md
Expand Up @@ -5,13 +5,14 @@

Binding system which includes any valid binding :

- Bind value to variable.
- Bind value to variable.

- Bind value to namespace. (DONE)
- Bind value to namespace. (DONE)

- Bind model to view and view to model (MVVM)
- Bind model to view and view to model (MVVM)

- And many ideas

- And many ideas
# Install

```bash
Expand All @@ -21,13 +22,23 @@ npm install binding --save;
or using CDN :

```js
<script src=""></script>
<script src="https://cdn.rawgit.com/abdennour/binding/master/cdn/binding-latest.min.js"></script>
```

# Example :
# Use Cases :

1. Bind namespace to value :

```js
const person = bind('name.firstname', 'Ahmed');
// console.log(person.name.firstname) // Ahmed
```

2. Bind namespace to value and attach the object :

```js
bind('person.name.firstname', 'Ahmed', window);
// console.log(person.name.firstname) // Ahmed
```

# License:
Expand Down

0 comments on commit cecc8c3

Please sign in to comment.