{"id":13509655,"url":"https://github.com/mobxjs/mobx-angularjs","last_synced_at":"2025-04-30T08:32:25.345Z","repository":{"id":57299567,"uuid":"74380858","full_name":"mobxjs/mobx-angularjs","owner":"mobxjs","description":"MobX connector to AngularJS","archived":false,"fork":false,"pushed_at":"2020-05-10T23:40:05.000Z","size":316,"stargazers_count":51,"open_issues_count":2,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-29T23:17:15.322Z","etag":null,"topics":["angularjs","mobx","mobx-connector","ng-mobx"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mobxjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-21T16:06:09.000Z","updated_at":"2023-08-30T04:34:44.000Z","dependencies_parsed_at":"2022-08-26T18:22:13.616Z","dependency_job_id":null,"html_url":"https://github.com/mobxjs/mobx-angularjs","commit_stats":null,"previous_names":["500tech/ng-mobx"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobxjs%2Fmobx-angularjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobxjs%2Fmobx-angularjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobxjs%2Fmobx-angularjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobxjs%2Fmobx-angularjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mobxjs","download_url":"https://codeload.github.com/mobxjs/mobx-angularjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224202813,"owners_count":17272825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","mobx","mobx-connector","ng-mobx"],"created_at":"2024-08-01T02:01:11.030Z","updated_at":"2024-11-12T02:17:47.937Z","avatar_url":"https://github.com/mobxjs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# mobx-angularjs\n\n[![npm version](https://img.shields.io/npm/v/mobx-angularjs.svg?style=flat-square)](https://www.npmjs.com/package/mobx-angularjs)\n[![coverage](https://img.shields.io/codecov/c/github/mobxjs/mobx-angularjs.svg?style=flat-square)](https://codecov.io/gh/mobxjs/mobx-angularjs)\n[![npm downloads](https://img.shields.io/npm/dw/mobx-angularjs.svg?style=flat-square)](https://www.npmjs.com/package/mobx-angularjs)\n[![Build Status](https://img.shields.io/travis/mobxjs/mobx-angularjs.svg?style=flat-square)](https://travis-ci.org/mobxjs/mobx-angularjs)\n\n## MobX connector to AngularJS\nThis package is for Angular 1.x, if you're looking for the Angular 2+ version, it's [here](https://github.com/mobxjs/mobx-angular).\n\nMobX is a modern reactive state management library.\n\nThis simple library connects MobX to Angular.\n\n## Why use MobX\nThe advantages of MobX are:\n\n* __Normalized__ - MobX lets you define computed values that are based on the minimal state\n\n* __Reactivity__ - MobX Automatically figures out when to re-invoke subscribers according to which observables they use. This allows for extremely performant applications\n\n* __Plain objects__ - Use plain objects and classes with MobX decorators, or even observe existing objects (from external sources for example)\n\n* MobX is being used heavily in the community (mainly with React)\n\n\u003ca href=\"http://mobxjs.github.io/mobx\" target=\"_blank\"\u003eRead more about MobX\u003c/a\u003e\n\n## Why use this library\nPerformance and magic!\n\nThis library brings the magic of automatic data binding, together with incredibly high performance.\n\nAll you need is to wrap your template with a `mobx-autorun` directive.\nThe directive will automatically re-run the $digest cycle on the scope, whenever something that the template uses changes.\n\nIt will also dispose of the autorun callback when the scope is destroyed.\n\n## Installation\n\nInstall, import, and include:\n```\n$ npm install --save mobx-angularjs\n```\n\n```js\nimport mobxAngular from 'mobx-angularjs'\n\nangular.module('app', [ mobxAngular ])\n```\n\n### or\n\nUse CDN and include:\n\n```html\n\u003c!-- development --\u003e\n\u003cscript src=\"https://unpkg.com/mobx-angularjs/mobx-angularjs.js\"\u003e\u003c/script\u003e\n\n\u003c!-- production --\u003e\n\u003cscript src=\"https://unpkg.com/mobx-angularjs/mobx-angularjs.min.js\"\u003e\u003c/script\u003e\n```\n\n```js\nangular.module('app', [ 'mobx-angularjs' ])\n```\n\n## Usage\n\n```js\nimport { store } from './store'\n\nangular.component('myComponent', {\n  controller() {\n    this.store = store\n  },\n  controllerAs: '$ctrl',\n  template: `\n    \u003cdiv mobx-autorun\u003e\n      {{ $ctrl.store.value }} - {{ $ctrl.store.computedValue }}\n      \u003cbutton ng-click=\"$ctrl.store.action()\"\u003eAction\u003c/button\u003e\n    \u003c/div\u003e\n  `\n})\n```\n\n**Important note:** Make sure you always mark your isolated scope block (such as `ng-if`) with the `mobx-autorun` directive so that MobX can react to it.\n\n## Example\n\nClone this repository:\n\n```\n$ git clone https://github.com/mobxjs/mobx-angularjs\n$ cd mobx-angularjs\n```\n\nInstall dependencies:\n\n```\n$ npm install\n```\n\nStart example server:\n\n```\n$ npm run example\n```\n\n__Note:__ Example uses [Parcel](https://parceljs.org/) which requires Node 8+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobxjs%2Fmobx-angularjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobxjs%2Fmobx-angularjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobxjs%2Fmobx-angularjs/lists"}