ng-repeat的做用域問題

ng-repeat會建立一個子做用域,因此在ng-repeat下面要使用參數時,要用$parent.XXXX參數。blog

示例以下:作用域

相關文章
相關標籤/搜索