Wednesday, 24 June 2015

inside of angular ng-repeat can't access model outside




inside of angular ng-repeat can't access model outside


The reason is ng-repeat creats new scopes.

To access model outside, you need use $parent

No comments:

Post a comment