# ns-view-bind

> Native bindings for noscript

Latest version **0.0.1** (published 2014-08-17) · 0 weekly downloads

## Install

```sh
npm install ns-view-bind
pnpm add ns-view-bind
yarn add ns-view-bind
bun add ns-view-bind
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-08-17 |
| First published | 2014-08-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexandr Yushkov |
| Maintainers | bt4r9 |

## Links

- npm: https://www.npmjs.com/package/ns-view-bind
- npm.io page: https://npm.io/package/ns-view-bind

## Recent versions

- 0.0.1 (latest) — 2014-08-17

## README

Биндинги для noscript (прототип)
================================

Перед запуском примера
----------------------
```sh
npm i
make
```

Идея
----
```js
ns.Model.define('model', {
  params: {
    id: null
  }
};

ns.Model.get('model', { id: 1 }).setData({
  property: 'a'
});

ns.View.define('view', {
  models: ['model']
}, ns.ViewBind);
```

```html
match .view ns-view-content {
  "static content"
  <div class="ns-view-bind" data-bind="model:property" data-mode="model-property">
    apply / model-property
  </div>
}

match / model-property {
  model = model('model')
  model.property
}
```

```js
ns.Model.get('model', { id: 1 }).set('.property', 'b');
```

---
_Source: https://npm.io/package/ns-view-bind · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
