From ae1aee2b6c5755e303c62943abba03bda3a6971e Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 29 Mar 2012 15:38:51 -0700 Subject: fix(FormController): ask for dependency to fool the BC module --- src/ng/directive/form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ng/directive/form.js') diff --git a/src/ng/directive/form.js b/src/ng/directive/form.js index b6d3f4be..7b96c936 100644 --- a/src/ng/directive/form.js +++ b/src/ng/directive/form.js @@ -31,7 +31,8 @@ var nullFormCtrl = { * of `FormController`. * */ -FormController.$inject = ['$element', '$attrs']; +//asks for $scope to fool the BC controller module +FormController.$inject = ['$element', '$attrs', '$scope']; function FormController(element, attrs) { var form = this, parentForm = element.parent().controller('form') || nullFormCtrl, -- cgit v1.2.3