Scandit Flow JavaScript SDK - AngularJS wrapper
The library is a wrapper over the Scandit Flow JavaScript SDK in order to provide a simple and convenient AngularJS module to integrate Angular applications with the Scandit Flow platform.
Getting started
To get started, take a look at the Getting started section of the Scandit Flow JavaScript SDK.
Installing
Using npm (for NodeJS):
$ npm install scandit-flow-ng
Using bower:
$ bower install scandit-flow-ng
Manually (downloaded from Releases):
<script src="angular-scandit.min.js"></script>
Client initialization
Provide your desired configuration into $scanditProvider
(see more: client configuration).
angular.module('app', ['scandit.flow'])
.config(function($scanditProvider) {
$scanditProvider.configure({
method: Scandit.Auth.Method.STATIC_KEY,
key: 'cfYYYf975f1ZZZZa5555eea3e7XXX87'
});
})
Usage
The library is automatically instantiated at application start-up. If using STATIC_KEY
authentication method, at this moment your application is ready to use. Access the Db
module to retrieve objects from the Scandit Flow Cloud DB (see more: accessing cloud storage).
app.controller('ProductListController', function($scope, $scandit) {
$scandit.ready(function() {
$scandit.Db['Product'].all().then(function(objects) {
$scope.$apply(function() {
$scope.objects = objects;
});
});
});
});
Usage examples
For more detailed examples please take a look at the examples
folder.
Documentation
API documentation will be available soon. For general documentation please refer to Scandit Flow - Documentation. (You need to log in with an already existing account to access the documentation)
License
The source code published here is released under the Apache 2.0 license: http://www.apache.org/licenses/LICENSE-2.0.
Questions? Contact support@scandit.com
.