Knockout Crud Examples
1) Directly edit the Observable Array
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
Just Updated (called upon save before clearing)
Just Added
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
Just Removed
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
2) Editing an object as a protected observable
Editing
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
Just Updated (called upon save before clearing)
Just Added
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
Just Removed
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
3) Adding a new object to an Observable Array with cancellation option
Editing
Add
index |
_id |
Task |
Completed |
isSelected |
|
|
|
|
|
4) Adding a new object to an Observable Array with cancellation option using Knockout Components