mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Ordering and active state for toderpina
This commit is contained in:
@ -119,7 +119,15 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
|
||||
title: project.title,
|
||||
tasks: angularFireCollection(ref.child('tasks'))
|
||||
};
|
||||
}
|
||||
$scope.clearActive();
|
||||
project.isActive = true;
|
||||
};
|
||||
|
||||
$scope.clearActive = function() {
|
||||
angular.forEach($scope.projects, function(project) {
|
||||
project.isActive = false;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Add a project to the projects list.
|
||||
|
||||
Reference in New Issue
Block a user