mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
List items animation and some other shit
This commit is contained in:
@ -74,6 +74,8 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
|
||||
$scope.lastProject = null;
|
||||
*/
|
||||
|
||||
$scope.isEditingProjects = false;
|
||||
|
||||
// Load our settings modal
|
||||
Modal.fromTemplateUrl('settings.html', function(modal) {
|
||||
$scope.settingsModal = modal;
|
||||
@ -183,6 +185,10 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
|
||||
});
|
||||
};
|
||||
|
||||
$scope.toggleProjectEditing = function() {
|
||||
$scope.isEditingProjects = !$scope.isEditingProjects;
|
||||
};
|
||||
|
||||
var projectsRef = new Firebase(FIREBASE_URL + '/project_list');
|
||||
$scope.projects = angularFireCollection(projectsRef.limit(100), function(snapshot) {
|
||||
if(!snapshot.val()) {
|
||||
|
||||
Reference in New Issue
Block a user