Skip to content

Commit c8ab1c6

Browse files
committed
added =* binding until <* is available, see angular/angular.js#15874
1 parent e71900b commit c8ab1c6

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div ng-repeat="todoItem in $ctrl.todoItems | filter:$ctrl.filterBy">
1+
<div ng-repeat="todoItem in $ctrl.todoItems">
22
<span>{{ todoItem.title }}</span>
3-
</div>
3+
</div>

src/app/todos/components/todo-list/todo-list.component.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export class TodoList implements angular.IComponentOptions {
77
constructor() {
88
this.template = require('./todo-list.component.html');
99
this.bindings = {
10-
todoItems: '<',
11-
filterBy: '<'
10+
todoItems: '=*' // added =* binding until <* is available, see https://github.com/angular/angular.js/issues/15874
1211
};
1312
}
1413
}

src/app/todos/containers/todos/todos.container.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<todo-list todo-items="$ctrl.todoItems"></todo-list>
44
</uib-tab>
55
<uib-tab index="1" heading="Completed">
6-
<todo-list todo-items="$ctrl.todoItems" filter-by="{completed:true}"></todo-list>
6+
<todo-list todo-items="$ctrl.todoItems | filter:{completed:true}"></todo-list>
77
</uib-tab>
8-
</uib-tabset>
8+
</uib-tabset>

0 commit comments

Comments
 (0)