angular.module('landing-page-edit', []) .controller('LandingPageEditCtrl', function($scope) { /* // dummy $scope.options.blocks = [ { title:"Block1", regions:null }, { title:"Block2" }, { title:"Block3" }, { title:"Block4" } ]; $scope.options = options; */ $scope.setRegion = function(b,r) { b.region = r; delete $scope.block; } $scope.unsetRegion = function(b) { b.region = null; } console.log("LandingPageEditCtrl"); $scope.$watch('copy.layout', function(newVal, oldVal) { console.log("copy.layout", newVal, oldVal); }); });