issue with having ng-form inside ng-repeat after migrating from Angular 1.2 to Angular 1.6

6 views
Skip to first unread message

Arun Sekar

unread,
Jan 9, 2018, 5:41:50 AM1/9/18
to Angular and AngularJS discussion
All form controllers in the Scope inside the ng-repeat are set to undefined.

Whenever the value of object in ng-repeat changes, 

Earlier version (AngularJs 1.2), the sequence of execution is as below,

$destroy -> removeController(formController) 
addControl(formConroller)


New version (AngularJs 1.6) , the sequence of execution is as below, 

addControl(formController)
$destroy -> removeController(formController) 

As the $destoy is execute after addControl, the scope have all the formControllers set to undefined.

has anyone faced a similar issue?


Reply all
Reply to author
Forward
0 new messages