{"id":42371,"library":"active-angular","title":"active-angular","description":"AngularJS ORM providing model-based data management with relationships, validations, and hooks. Version 3.0.0-beta.0.0.8 is a pre-release with breaking changes from earlier betas. Release cadence is irregular. Key differentiators include lightweight integration with AngularJS's digest cycle and promise-based API. Not actively maintained; alternatives like restangular or plain $http are recommended.","status":"deprecated","version":"3.0.0-beta.0.0.8","language":"javascript","source_language":"en","source_url":"https://github.com/not_yet","tags":["javascript"],"install":[{"cmd":"npm install active-angular","lang":"bash","label":"npm"},{"cmd":"yarn add active-angular","lang":"bash","label":"yarn"},{"cmd":"pnpm add active-angular","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Requires AngularJS as a peer dependency","package":"angular","optional":false},{"reason":"Used internally for utility functions","package":"lodash","optional":true}],"imports":[{"note":"ESM-style default import works, but CommonJS works in bundlers","wrong":"const active = require('active-angular'); angular.module('app', [active]);","symbol":"default","correct":"import active from 'active-angular'; angular.module('app', [active]);"},{"note":"Named export available but default import also gives access to Model","wrong":"import active from 'active-angular'; active.Model.","symbol":"Model","correct":"import { Model } from 'active-angular'; class User extends Model { ... }"},{"note":"Named export works; CommonJS destructuring also valid","wrong":"var Schema = require('active-angular').Schema;","symbol":"Schema","correct":"import { Schema } from 'active-angular'; var schema = new Schema(...);"}],"quickstart":{"code":"import angular from 'angular';\nimport active from 'active-angular';\nimport { Model } from 'active-angular';\n\nclass User extends Model {\n  static schema = {\n    username: { type: 'string', required: true },\n    email: { type: 'string', pattern: /@/ }\n  };\n\n  fullName() {\n    return this.firstName + ' ' + this.lastName;\n  }\n}\n\nangular.module('app', [active])\n  .run(($http) => {\n    User.api = $http; // bind HTTP service\n    const user = new User({ username: 'johndoe', email: 'john@example.com' });\n    user.$save().then(() => console.log('Saved!'));\n  });","lang":"javascript","description":"Demonstrates defining a model with schema, saving a record with AngularJS $http."},"warnings":[{"fix":"Use restangular, ngResource, or plain $http instead.","message":"Library is in maintenance mode and not recommended for new projects.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Refer to the beta changelog for migration.","message":"Version 3.0.0-beta series changed the API from 2.x; Model class and schema definition are different.","severity":"breaking","affected_versions":">=3.0.0-beta"},{"fix":"For Angular 2+, use other ORMs like @angular/common/http or angular2-orm.","message":"Does not work with Angular 2+; only compatible with AngularJS 1.x.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Set Model.api = $http in your run block.","message":"Requires manual binding of $http or $resource to models; no automatic injection.","severity":"breaking","affected_versions":">=3.0.0-beta"}],"env_vars":null,"search_vec":"'3.0.0':18 'activ':2,51 'active-angular':1 'altern':53 'angular':3 'angularj':4,41 'api':49 'base':9,48 'beta':30 'beta.0.0.8':19 'break':26 'cadenc':32 'chang':27 'cycl':44 'data':10 'differenti':36 'digest':43 'earlier':29 'hook':16 'http':58 'includ':37 'integr':39 'irregular':34 'javascript':61 'key':35 'lightweight':38 'like':54 'maintain':52 'manag':11 'model':8 'model-bas':7 'orm':5 'plain':57 'pre':23 'pre-releas':22 'promis':47 'promise-bas':46 'provid':6 'recommend':60 'relationship':13 'releas':24,31 'restangular':55 'valid':14 'version':17","created_at":"2026-06-05T16:54:39.750238+00:00","updated_at":"2026-06-05T16:54:39.750238+00:00","problems":[{"fix":"Run npm install active-angular@3.0.0-beta.0.0.8 and ensure bundler/loader paths are correct.","cause":"Module not installed or not loaded properly after npm install.","error":"Uncaught Error: Could not find module 'active-angular'"},{"fix":"import { Model } from 'active-angular';","cause":"Using wrong import style; Model is a named export, not default.","error":"TypeError: Model is not a constructor"},{"fix":"In your AngularJS module's run block: Model.api = $http;","cause":"Forgetting to assign $http to Model.api.","error":"Error: [active] No HTTP service provided"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://www.maurits.amsterdam","github":"https://github.com/not_yet","docs":null,"changelog":null,"pypi":null,"npm":"active-angular","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}