aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/form.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-29 15:38:51 -0700
committerIgor Minar2012-03-29 16:10:40 -0700
commitae1aee2b6c5755e303c62943abba03bda3a6971e (patch)
tree1c7cf7d312411df53a2f132ea55fdf068d71efb1 /src/ng/directive/form.js
parent423242017e56c103b07b7f576dbd52a5a38c331a (diff)
downloadangular.js-ae1aee2b6c5755e303c62943abba03bda3a6971e.tar.bz2
fix(FormController): ask for dependency to fool the BC module
Diffstat (limited to 'src/ng/directive/form.js')
-rw-r--r--src/ng/directive/form.js3
1 files changed, 2 insertions, 1 deletions
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,