Skip to content

Some helpful angular helpers for using CorrelatorJs in your apps.

License

Notifications You must be signed in to change notification settings

masonlamy/angular-correlator-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

angular-correlator-sharp

A simple angular module providing support for the correlator sharp package.

Installation

Cureently the alpha is not published on NPM, will update when beta goes live on NPM.

npm install angular-correlator-sharp --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) {

            // The id of the 'myController_child' scope.
            $scope.stateChangeCorrelationId = csActivityScope.current.id.value;

            // Change the current scope.        
            csActivityScope.new('myController');

            // Nest a context as a child scope.
            csActivityScope.child('myController_child');

            // The id of the 'myController_child' scope.
            $scope.currentCorrelationId = csActivityScope.current.id.value;

            // The id of the 'myController' scope.
            $scope.parentCorrelationId = csActivityScope.current.parent.id.value;

            // Generate a new root scope
            csActivityScope.create('myApp');
		}]);

About

Some helpful angular helpers for using CorrelatorJs in your apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 61.0%
  • HTML 37.1%
  • CoffeeScript 1.9%