Skip to content
Gunnar Ahlberg edited this page Jan 10, 2014 · 2 revisions
var oldTodos = $scope.todos;
$scope.todos = [];
angular.forEach(oldTodos, function(todo) {
  if (!todo.done) $scope.todos.push(todo);
});
(let [arr (into-array (filter #(not (.-done %)) (.-todos scope)))]
  (aset scope "todos" arr))

From http://java.dzone.com/articles/using-angularjs-clojurescript

Clone this wiki locally