Testing our code on iOS
To test our code on iOS, we simply navigate to our PhoneGap project (phonegap/todo
) and issue the following command:
cordova emulate ios
Remember to turn on your server and MongoDB as well. You should see the following screen on your Android emulator:
This is simply some of the data that we created beforehand. Let's go ahead and create a new to-do item:
Now go ahead and save it. You will see the following screen:
I'm just going to go ahead and edit the latest to-do item:
Now click on Save. You should see the latest item saved as shown in the following screenshot: