1.0.7 • Published 6 years ago

@gogrillion/ng-gl-graph v1.0.7

Weekly downloads
6
License
ISC
Repository
-
Last release
6 years ago

Gl-Graph Angular 1.x Module


This module provides Angular 1.5+ style directives wrapping the Gl-Graph visualization.

Examples

App.js

import {default as GlGraph} from 'gl-graph';
import 'angular';
import '../index';

let app = angular.module('app', ['ngGlGraph']);

app.controller('AppCtrl', function($scope){
    $scope.graphModel = new GlGraph.Graph();
    GlGraph.Generator.RandomTree($scope.graphModel);
});

Index.html

<html ng-app="app">
    <head>
        <title>GraphView</title>
    </head>
    <body ng-controller="AppCtrl">
        <div id="graphViz" ng-gl-graph="graphModel"></div>
    </body>
</html>

License

Copyright (C) 2018 GoGrillion

ng-gl-graph is licensed under the ISC License