mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-19 08:00:23 +00:00
fix(FormController): ask for dependency to fool the BC module
This commit is contained in:
parent
423242017e
commit
ae1aee2b6c
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue