![Build Status](https://travis-ci.org/CorrelatorSharp/angular-correlator-js.svg?branch=master)
angular-correlator-js
A simple angular module providing support for the correlator sharp package.
Installation
This package is in beta and while it has been stable for awhile, caution should be taken when integrating it into production projetcs.
npm install angular-correlator-js --save
Usage
You can use the provided service to interact with the current scope and create new sub scopes.
angular
.module('myApp', [ 'correlator-js' ])
.controller('myController', ['$scope', 'csActivityScope', function ($scope, csActivityScope) {
$scope.stateChangeCorrelationId = csActivityScope.current.id.value;
csActivityScope.new('myController');
csActivityScope.child('myController_child');
$scope.currentCorrelationId = csActivityScope.current.id.value;
$scope.parentCorrelationId = csActivityScope.current.parent.id.value;
csActivityScope.create('myApp');
}]);