Skip to content

Instantly share code, notes, and snippets.

@TimGeyssens
Created August 13, 2020 14:51
Show Gist options
  • Save TimGeyssens/03d639deff7ebce3b8e8ebbc3408102b to your computer and use it in GitHub Desktop.
Save TimGeyssens/03d639deff7ebce3b8e8ebbc3408102b to your computer and use it in GitHub Desktop.
var app = angular.module("umbraco");
angular.module("umbraco").controller("Custom.ThemaColorPickerController",
function ($scope, $routeParams, $location, $http) {
$http.get("backoffice/Custom/ThemaColorPickerApi/GetAvailableColors?page=" + $routeParams.id).then(function (response) {
$scope.colors = response.data;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment