我最近开始使用LumX框架,我试图用自己的选择指令here,但我不是他们的文档清晰。这是我到目前为止有:LumX LX-选择不更新NG-模式
<lx-select ng-model="selectedPriority" placeholder="Priority" choices="priorities">
<lx-select-selected>
{{ $selected.name }}
</lx-select-selected>
<lx-select-choices>
{{ $choice.name }}
</lx-select-choices>
</lx-select>
这就是我如何确定优先事项(控制器内的DIV包含LX-选择)
$scope.priorities = [
{ name: 'Urgent', id: 1 },
{ name: 'Very important', id: 2 },
{ name: 'Not important', id: 3 },
{ name: 'None', id: 4 }
];
这确实给我列表从中选择,但selectedPriority模型永远不会被更新,所以,每当我尝试使用该值,它总是不确定的。我甚至不能运行他们的文档页面提供的例子,但我不知道我错过了什么。