Rename the propertyEditorService to propertyEditorResource

This commit is contained in:
Kevin Giszewski
2014-01-19 08:00:09 -05:00
parent 4900dcc5b6
commit d5d05cef2f
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ module.exports = function(grunt) {
'app/controllers/controller.js',
'app/controllers/config.controller.js',
'app/directives/archetypeproperty.js',
'app/services/propertyeditor.js'
'app/resources/propertyeditor.js'
],
dest: '<%= dest %>/js/archetype.js'
}
+4 -4
View File
@@ -1,4 +1,4 @@
angular.module("umbraco").controller("Imulus.ArchetypeConfigController", function ($scope, $http, assetsService, propertyEditorService) {
angular.module("umbraco").controller("Imulus.ArchetypeConfigController", function ($scope, $http, assetsService, propertyEditorResource) {
//$scope.model.value = "";
//console.log($scope.model.value);
@@ -10,12 +10,12 @@ angular.module("umbraco").controller("Imulus.ArchetypeConfigController", functio
$scope.model.value = $scope.model.value || defaultFieldsetConfigModel;
initConfigRenderModel();
//get the available views
propertyEditorService.getViews().then(function(data){
propertyEditorResource.getViews().then(function(data){
$scope.availableViews = data;
});
$scope.sortableOptions = {
axis: 'y',
cursor: "move",
@@ -1,5 +1,5 @@
angular.module('umbraco').factory('propertyEditorService', function($q, $http, umbRequestHelper){
return {
angular.module('umbraco').factory('propertyEditorResource', function($q, $http, umbRequestHelper){
return {
getViews: function() {
return umbRequestHelper.resourcePromise(
$http.get("/App_Plugins/Archetype/js/config.views.js"), 'Failed to retreive config for views.'