I'm trying to build a directive that takes care of adding more directives to the element it is declared on. For example, I want to build a directive that takes care of adding datepicker, datepicker-language and ng-required="true".  If I...
(There are a ton of questions every day that link back to why can't I set the value of my observable, instead of having so many different answers saying the same thing I wanted to create a question to refer back to for everyone)  Setting value...
I am using Knockout.js as a MVVM library to bind my data to some pages. I'm currently building a library to make REST calls to a web service. My RESTful web service returns a simple structure:  {     id : 1,     details: {         name: "John...
I've got a web project, where I need to model some basic JavaScript classes and put them into a separate javascript file. Now I want to use them locally on a page and add them into a master view model, which acts as binding object. My question is...
I'm building an Aurelia app that uses "Models" for every type of data object.  All my Models look something like this:  export class Item {     id = null;     name = '';     description = '';      constructor (data) {...
Let's consider a view model using knockout like that:  var data = [{ id: 1, name: "John Doe" }, { id: 2, name: ""}, { id: 3, name: "Peter Parker"}];  var viewModel = {     items: ko.observableArray(data) };  viewModel.show...
I'm using the following:   knockout-2.1.0.js koExternalTemplateEngine_all.js   What I'm trying to achieve is the following:   Template container loads external HTML and loads a specific VM for that HTML (works). Template container loads/switc...
I have an MVVM application using Kendo Grid, and I want to display hierarchy (nested grid). I am trying to replicate this example but I am not able to display the hierarchy data. How can I get the hierarchy records to display?     cshtml code:    <...
Well, that's not the best situation description... Anyway, I'm trying to update my ViewModel but it's not working. By default I'm getting data from controller function and by button click - from another function in same contoller, but...
I've been looking around on internet to get a better understanding of MVVM in general.  On Wikipedia it states the components of the MVVM pattern are:   Model View View Model Binder   This is the first time I encountered the binder definition alo...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.