Sha256: 0c77cc19db211c54329a0d293900e36226e53353ade8c27e171481f82cfd1e8a
Contents?: true
Size: 1.56 KB
Versions: 1
Compression:
Stored size: 1.56 KB
Contents
I"6(function() { angular.module("Editor").controller("EditorCtrl", [ "$scope", "Restangular", function($scope, Restangular) { console.log('EditorCtrl'); $scope.layouts = []; $scope.pages = []; $scope.snippets = []; $scope.options = {}; $scope.summernotes = {}; Restangular.one("summernotes").get().then((function(data) { console.log(data); return $scope.summernotes = data; }), function(error) { return console.log(error); }); Restangular.one("layouts").get().then((function(data) { console.log(data); return $scope.layouts = data; }), function(error) { return console.log(error); }); Restangular.one("pages").get().then((function(data) { console.log(data); return $scope.pages = data; }), function(error) { return console.log(error); }); Restangular.one("snippets").get().then((function(data) { console.log(data); console.log({ id: null, is_dir: true, title: snippets, items: data }); return $scope.snippets = { id: null, is_dir: true, title: snippets, items: data }; }), function(error) { return console.log(error); }); return $scope.onSave = function() { return $scope.summernotes.put().then((function(data) { return console.log(data); }), function(error) { return console.log(error); }); }; } ]); }).call(this); :ET
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sedge_cms-0.0.1 | test/dummy/tmp/cache/assets/development/sprockets/v3.0/02hSfQ5cKDJrxEbCRGfuUVyWJ5gZqe_hhDWwU4maXUg.cache |