I use angular-json-editor. This is controller:
var TaskEditCtrl = function($scope, $http, $routeParams, Notification, Task) {
$scope.task = Task.get({id: $routeParams.taskId});
$scope.schema = $http.get("/static/schema/schema.json");
};
This is template:
<json-editor schema="schema" startval="task.data">
task.data is undefined and not loaded into editor. How make it?
$scope.task.datadefined?