我使用 ng-inculde 显示带有复选框的对象我的问题是如果我在同一页面中更改对象 .. 复选框仍然保持其状态。
例如 :
我有类似的模型
$scope.templates = [{
name: 'Object 1',
url: 'template1.html',
options:['A1','B2']},
{
name: 'Object 2',
url: 'template1.html',
options:['A1','B2']}];
when selected object is object 1 and I check "A1" after that I chnage the selection and move to Object 2 it still shows A1 as selected.