1.

Name Two Context Properties In Knockout And Explain Their Use?

Answer»

When working with arrays, the $INDEX property returns the index of the current context item in the array. When working with nested objects, the $parent property allows us to EXAMINE the parent of an OBJECT, for example a customer may have many ORDERS, an order may have many LINE items. The order is the parent of the line item, the customer is the parent of the order.

When working with arrays, the $index property returns the index of the current context item in the array. When working with nested objects, the $parent property allows us to examine the parent of an object, for example a customer may have many orders, an order may have many line items. The order is the parent of the line item, the customer is the parent of the order.



Discussion

No Comment Found