Skip to content

Commit 5963ce1

Browse files
committed
watch for form changes
1 parent ec0527e commit 5963ce1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/app-controller.es6

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ angular.module('schemaFormBuilderApp').controller('FormBuilderController',functi
1010
$scope.form = [];
1111

1212

13+
$scope.$watch(function () {
14+
return $scope.form;
15+
}, function (update) {
16+
window.console.log(update);
17+
}, true);
18+
1319
$scope.model = {
1420
name: 'Sample Form',
1521
type: 'schema-form',

0 commit comments

Comments
 (0)