Skip to content

Commit c8601d1

Browse files
Ben RubinBen Rubin
authored andcommitted
re-hookup refresh model
1 parent 10534f8 commit c8601d1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docsApp/pages/home/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div layout="row">
2-
<md-tree ng-model="vm.selectedItems" restrict-selection="depth,single" flex>
2+
<md-tree ng-model="vm.selectedItems" restrict-selection="depth" flex>
33
<md-branch branch-repeat="location in vm.locationData" class="md-2-line" select>
44
<div class="md-branch-text">
55
<h3>{{location.name}}</h3>

src/js/tree.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ function treeDirective($mdTheming, $mdUtil) {
108108
} else {
109109
deselect(hashKey);
110110
}
111+
// TODO update model without calling select on branches
112+
refreshViewValue();
111113
}
112114

113115
function deselectAll() {

0 commit comments

Comments
 (0)