Skip to content

Commit 9752a07

Browse files
committed
add graph route
1 parent db65cfe commit 9752a07

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

public/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ define(['exports', 'angular', 'angular-route', 'angular-animate', 'angular-sanit
4343
controller: 'aqlController',
4444
templateUrl: 'aql/aqlView.html'
4545
});
46+
route.when('/database/:currentDatabase/graph', {
47+
controller: 'graphController',
48+
templateUrl: 'graph/graphView.html'
49+
});
4650
route.when('/database/:currentDatabase', {
4751
controller: 'homeController',
4852
templateUrl: 'home/homeView.html'

src/src/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ngjsoneditor from 'ngjsoneditor'
1212

1313
window.JSONEditor = jsoneditor;
1414

15-
let app = angular.module('app', ['ngRoute', 'ngAnimate', 'ngSanitize', 'ng.jsoneditor']);
15+
const app = angular.module('app', ['ngRoute', 'ngAnimate', 'ngSanitize', 'ng.jsoneditor']);
1616

1717
app.config(['$routeProvider', '$locationProvider', '$sceDelegateProvider', (route, locationProvider, sceDelegateProvider) => {
1818

@@ -40,6 +40,12 @@ app.config(['$routeProvider', '$locationProvider', '$sceDelegateProvider', (rout
4040
templateUrl: 'aql/aqlView.html'
4141
});
4242

43+
// G R A P H
44+
route.when('/database/:currentDatabase/graph', {
45+
controller: 'graphController',
46+
templateUrl: 'graph/graphView.html'
47+
});
48+
4349
// route.when('/collection/:collectionName/:from/:to/:index', {
4450
// controller: 'documentRouteController',
4551
// template:''

0 commit comments

Comments
 (0)