# mmlpx-angularjs

> mmlpx connector to angularjs

Latest version **0.0.4** (published 2018-06-28) · 0 weekly downloads

## Install

```sh
npm install mmlpx-angularjs
pnpm add mmlpx-angularjs
yarn add mmlpx-angularjs
bun add mmlpx-angularjs
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-06-28 |
| First published | 2018-01-16 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kuitos |

## Links

- npm: https://www.npmjs.com/package/mmlpx-angularjs
- Homepage: https://github.com/mmlpxjs/mmlpx-angularjs
- npm.io page: https://npm.io/package/mmlpx-angularjs

## Recent versions

- 0.0.4 (latest) — 2018-06-28
- 0.0.2 — 2018-01-16
- 0.0.1 — 2018-01-16

## README

# mmlpx-angularjs
mmlpx connector to angularjs

## Installing

```she
npm i mmlpx-angularjs -S
```

## Usage
```js
import { ViewModel, postConstruct } from 'mmlpx';
import { connect } from 'mmlpx-angularjs';
import { observable, observe } from 'mobx';
import ngMobx from 'mobx-angularjs';


@ViewModel
class UserViewModel {

	@observable
	id = null;

	contructor($element) {
    	this.$element = $element;
	}

	@postConstruct
	onInit() {
		observe(this, 'id', changedValue => this.store.fetchUsers(changedValue))
	}
}

angular
	.module('app', [ngMobx])
	.component('container', {
		template: '<div mobx-autorun>{{$ctrl.id}}</div>'
		controller: connect(UserViewModel, '$element')
	});
```

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