Sha256: c40835acf66763a083e26367fd2144641ca7309484c48cc0364679e8ef6ec2f5
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
I"w(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) { return $scope.summernotes = data; }), function(error) { return console.log(error); }); Restangular.one("layouts").get().then((function(data) { return $scope.layouts = data; }), function(error) { return console.log(error); }); Restangular.one("pages").get().then((function(data) { return $scope.pages = data; }), function(error) { return console.log(error); }); Restangular.one("snippets").get().then((function(data) { $scope.snippets = { id: 'asdasd', is_dir: true, title: 'snippets', items: data }; return console.log($scope.snippets); }), 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/n6sMb3a4So65CnzbBVhL7Xp6A-ECsCfYzWL57a7EAFI.cache |