I am currently developing an app that includes a To Do List feature. I am having trouble with saving the tasks and would appreciate some help. I want the tasks to be automatically saved every time you click on "Create Task" and should also be displayed every time you open the app. Below is the Popup section with the "Create Task" button:
Popup
$scope.newTask = function() {
$ionicPopup.prompt({
title: "New Task",
template: "Enter Task:",
inputPlaceholder: "What do you need to do?",
okText: 'Create Task'
}).then(function(res) { // promise
if (res) $scope.tasks.push({title: res, completed: false});
})
};