Vincent Fournier 5d87fdaacd Improve code naming
Change-Id: If4837f71caca6d594e141fff830c7c2c08376e03
2015-08-24 20:33:27 -04:00

25 lines
886 B
JavaScript

/*global jQuery */
'use strict';
angular.module('bansho.textArea', [])
.directive('banshoTextArea', [
function () {
return {
restrict: 'E',
scope: {
options: '='
},
templateUrl: 'components/directive/text_area/text_area.html',
controller:['$scope', '$window', 'configManager',
function ($scope, $window, configManager) {
$scope.configuration = JSON.stringify(configManager.readLayoutConfig(), null, 4);
$scope.saveConfiguration = function () {
configManager.saveLayoutConfig(JSON.parse($scope.configuration));
$window.location.reload();
};
}
]
};
}
]);