Configuration for the client.

This commit is contained in:
Your Name 2014-05-31 19:19:36 +02:00
parent 637fd10606
commit 249275bc0a
13 changed files with 53 additions and 28 deletions

View file

@ -1,7 +1,9 @@
'use strict';
angular.module('ffffng')
.controller('MainCtrl', function ($scope, Navigator) {
.controller('MainCtrl', function ($scope, Navigator, config) {
$scope.config = config;
$scope.newNode = function () {
Navigator.newNode();
};

View file

@ -1,7 +1,9 @@
'use strict';
angular.module('ffffng')
.controller('NewNodeCtrl', function ($scope, Navigator, NodeService, $routeParams, _) {
.controller('NewNodeCtrl', function ($scope, Navigator, NodeService, $routeParams, _, config) {
$scope.config = config;
$scope.node = {};
$scope.saved = false;

View file

@ -1,7 +1,8 @@
'use strict';
angular.module('ffffng')
.controller('UpdateNodeCtrl', function ($scope, Navigator, NodeService) {
.controller('UpdateNodeCtrl', function ($scope, Navigator, NodeService, config) {
$scope.config = config;
$scope.node = undefined;
$scope.token = undefined;
$scope.saved = false;