Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.61 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.61 KB

worldstate-analysis-widgets Build Status

The AngularJS implementation of the Scenario Comparison and Analysis and the Multi-Criteria-Analysis and Decision Support Functional Building Block.

worldstate_analysis_widgets_example

Get started

Simply pull in the libraries and all the dependencies via bower

  bower install --save worldstate-analysis-widgets

There is a number of directives that are useful for the different parts of the worldstate analysis. Currently the best way to get a grip on the usage, see the index.html of this repo. Pull in and wire toghether the directives that you want to use in your application accordingly.

However, this will only work correctly if you provide info where to find the ICMM instance to use:

angular.module(
    'myCoolModule'
).config(
  [
    '$provide',
    function ($provide) {
        'use strict';

        $provide.constant('CRISMA_DOMAIN', 'CRISMA');                       // the name of the CRISMA domain to use
        $provide.constant('CRISMA_ICMM_API', 'http://url/to/the/icmm/api'); // the url to the API of the ICMM instance to use
      }
    }
  ]
);

Demo

Simply checkout the project and put the app folder in your favourite web server, or even more simple, use grunt to fire up a web server for you

grunt serve