Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RowReservation(initialRow) {
- var self = this;
- self.row = ko.observable(initialRow);
- self.rowID = ko.observable(self.row().rowID);
- self.price = ko.observable(self.row().price);
- }
- <input data-bind="value: price" />
- <input data-bind="value: $data.row().price"/>
- // RowReservationObject
- {'row':
- {'rowName': 'Standard',
- 'rowID': 1,
- 'price': 19.99 }, // --> this is what I'm binding against now
- 'rowID': 1
- 'price': 19.99} // -- this is what you were binding against before
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement