-
Notifications
You must be signed in to change notification settings - Fork 19
MLJS With
MLJS is designed to be used with any of your favourite projects, rather than forcing you to use the favourite package of the MLJS developers.
Below are a set of common JavaScript frameworks and a brief explanation of how MLJS can be used with them.
MLJS Core and Contexts (the mljs.js file) can be used in Node.js. Just npm install mljs, then var mljs = require("mljs"); to get a copy.
Angular.js is 2014's most hyped JS API (2012 was jQuery, 2010 was Dojo, 2008 was Prototype... Hence us not forcing a library on you!). The MLJS core object's low level REST wrappers work well within an Angular.js Service.
MLJS Core contexts are stateful objects that call the MLJS object. These require a little work to be used with Angular. As a convenience and Beta test, the Search Context has support for Promises. This should help when integrating to Angular.js.
See the Angular.js and MLJS Tutorial for full details.