Giter VIP home page Giter VIP logo

angular-correlator-sharp's Introduction

angular-correlator-sharp

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-sharp' ])
		.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');
		}]);

Addins

This package currently come pre packaged with a number of extras, including ActivityScope initialisers for the standard ngRoute module and also the ui.router routing modules.

It also has a tracing logger for Azure's Application Insights tracing.

As the package grows and new logging frameworks and front-end frameworks are added, these will be broken out into their own packages.

Todo

  1. Add support for other app frameworks
    • Ember
    • React
    • Backbone
    • etc.
  2. Add support for other client side logging frameworks
    • log4js
    • etc
  3. Either break up the project into multiple smaller pieces or improve the build pipeline for building out multiple configurations.
  4. Nail down the scope for the activity in a consistant way
    • Any custom preference is currently supported of course.
    • GET (form or page)?
    • UI state?

angular-correlator-sharp's People

Contributors

jasond-s avatar

Stargazers

Ivan Zlatev avatar

Watchers

Ivan Zlatev avatar James Cloos avatar  avatar

Forkers

masonlamy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.