mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 04:11:51 +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`.
|
* of `FormController`.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
FormController.$inject = ['$element', '$attrs'];
|
//asks for $scope to fool the BC controller module
|
||||||
|
FormController.$inject = ['$element', '$attrs', '$scope'];
|
||||||
function FormController(element, attrs) {
|
function FormController(element, attrs) {
|
||||||
var form = this,
|
var form = this,
|
||||||
parentForm = element.parent().controller('form') || nullFormCtrl,
|
parentForm = element.parent().controller('form') || nullFormCtrl,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue