@gogrillion/ng-gl-graph
v1.0.7
Published
Angular 1.x module for gl-graph
Downloads
2
Readme
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