Sha256: ed6d377d8574195748f95cdf2b80c174f67fb7ac30fe83e49fc31f665e1e004a
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
I"S(function() { angular.module("Editor").controller("PageCtrl", [ "$rootScope", "$scope", "$location", "Restangular", function($rootScope, $scope, $location, Restangular) { console.log('PageCtrl'); $rootScope.location = $location; $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) { return $scope.layouts = [ { id: null, is_dir: true, title: 'layouts', items: data, root: true } ]; }), function(error) { return console.log(error); }); Restangular.one("pages").get().then((function(data) { return $scope.pages = [ { id: null, is_dir: true, title: 'pages', items: data, root: true } ]; }), function(error) { return console.log(error); }); Restangular.one("snippets").get().then((function(data) { $scope.snippets = [ { id: null, is_dir: true, title: 'snippets', items: data, root: true } ]; 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/f7rOGxKxUOMdkiJIevzDc28deybv9-wvnB_BWDV5uhw.cache |