fix(FormController): ask for dependency to fool the BC module

This commit is contained in:
Igor Minar 2012-03-29 15:38:51 -07:00
parent 423242017e
commit ae1aee2b6c

View file

@ -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,