Questions tagged [knockout-mvvm]

Knockout is a standalone JavaScript implementation of the Model-View-ViewModel pattern with templates.

Knockout is a standalone JavaScript implementation of the Model-View-ViewModel pattern with templates. The underlying principles are therefore:

1) a clear separation between domain data, view components and data to be displayed.

2) the presence of a clearly defined layer of specialized code to manage the relationships between the view components

The latter leverages the native event management features of the Javascript language.

These features streamline and simplify the specification of complex relationships between view components, which in turn make the display more responsive and the user experience richer.

6 questions
4
votes
2 answers

Combination of MVVM and mobile UI frameworks for use with Breeze

I've been working with the Breeze/knockout combination for a while now and have been overall quite satisfied. Twitter Bootstrap was a suitable UI place holder while experimenting but time has come to focus on the UI (mobile web app) and I've run up…
user1843640
  • 3,613
  • 3
  • 31
  • 44
1
vote
1 answer

How to take value from input field and assign it to a JavaScript object in your view model?

I need to create a simple comments box (just like facebook comments for example) whith knockout js. Im new to KO and I tried to search but I cant seem to find the answer to that silly question. I would spend more time but I need to finish my…
1
vote
1 answer

Knockout, Kendo treeview, mvvm, HierarchicalDataSource: Unable to get value of the property 'toLowerCase'

I'm trying to populate my treeview using the viewmodel: VIEWMODEL: var vm = { dragAndDrop: ko.observable(true), dataSource: getDataAPI(), dataTextField: "FullName" } return vm; function getDataAPI() { var…
I Stand With Russia
  • 6,254
  • 8
  • 39
  • 67
0
votes
1 answer

Enforce Knockout computed observableArray to have length of 1 (one)

I have a computed observableArray called selectedToppings which returns filtered data from another observableArray called toppings. selectedToppings should return all toppings that have their observable property of selected set to true. In some…
kzh
  • 19,810
  • 13
  • 73
  • 97
0
votes
1 answer

Can't access observable array in viewmodel in knockout.js mvvm to manipulate items

I'm working on an MVVM web app using Knockout.js, require.js etc. The problem is that I can't access items within a property (of type observable array) in my viewmodel. Sample contract model: define('model.contract', ['ko'], function (ko) { …
0
votes
1 answer

End to end MVVM using knockout (javascript)

I am new to MVVM , and i wanted to understand , if you have a model in the back end, say a c# library which is getting data from the database or any other service. how would the Model notify the viewmodel. i understand in the MVVM INotifyprovier…
Rahul
  • 95
  • 1
  • 2
  • 13