Join Sani Yusuf for an in-depth discussion in this video Solution: Todo app challenge, part of Ionic 3.0 for Mobile App Developers.
(music)…- [Instructor] So now, let's actually go ahead…and see the solutions for the challenge.…So if we go to our code,…the first thing I did in my TodoService…was added another function called editTodo.…Now this function took in a todo…as a parameter and the Index.…The first parameter todo is the actual text…that has been changed, and the second parameter,…todoIndex, is the index of the todo that has been changed.…It then accesses the todos array on line 40,…and then passes that Index, and just sets its todo value.…
Now in my home.html, I actually created an ion-item-options,…a second one that is,…from the first one that we created earlier.…And then this particular ion-item-options,…I gave it the side attribute left,…so now it will be swiped in from the left-hand side.…I then created a button and used the create icon.…I then passed this button a click event…called the edittodoevent.…Inside this edittodo function, I passed in todoindex,…which is in this case the index of the todo in my home.ts.…
I then created this edittodo function and I passed in…
- Setting up the Ionic CLI
- Understanding the Ionic CLI
- Testing with the Ionic View app
- Working with the Ionic tab template
- Theming and configuring an Ionic app
- Working with the Ionic side menu template
- Working with Ionic Native
Skill Level Advanced
Ionic 2 and AngularFire2: Building Mobile Appswith Steven Emmerich57m 27s Intermediate
Angular 2 Essential Trainingwith Justin Schwartzenberger2h 45m Intermediate
1. Overview and Setting Up Ionic
2. Working with the Ionic Blank Template
3. Testing with the Ionic View App
4. Working with the Ionic Tab Template
5. Theming and Configuring an Ionic App
6. Working with the Ionic Side Menu Template
7. Introduction to Ionic Native
Next steps2m 26s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.