ng-repeat的做用域问题

ng-repeat会建立一个子做用域,因此在ng-repeat下面要使用参数时,要用$parent.XXXX参数。blog

示例以下:作用域

相关文章
相关标签/搜索