So I have yet another DurandalJS question. So I have a few widgets that are pretty much self contained. They render or hide themselves depending on whether the current user is logged in or not e.g. I have a widget that displays the current users name...
My application has three things that are "global": a user location with lat and lng values, if the user is logged in or not, and the activity that they have chosen (think of it like a category).  What I'd like to happen is for these value...
I have a master/detail situation. I'd like to employ a child router so that I can (a) make full use of the history module and (b) trigger the entrance transition on only the child. Here's my setup:  Shell.js  // configure the shell router rou...
I've managed to get a simple router working and even created a child router for my submenu but there are one or two things I'm not sure of why they're there. The docs give you a basic leg up and then you're on your own.  So I'm re...
Starting to pull my hair off!  I am creating an object using Breeze (the metadata is coming from a web api server).  The server side looks like this:  public class Product {     public int ProductId { get; set; }     public String Name { get; set; }...
Let's say I have the following durandal code:  define(['durandal/app', 'plugins/http'], function (app) {     var vm = function(){         var self = this;         self.myData = ko.observableArray([]);         }      };     vm.acti...
I have a widget that has a drop down list, that needs to be refreshed every time I go to the view.  Is there a callback that I can use in the widget's viewmodel, that is called everytime the widget is used? Something that behaves exactly like a r...
I'm a Beginner trying to learn SPA / Durandal, Knockout etc...  Need some help with my routes for a Admin drop down button.  Here are my routes in the shell.js so far:  var routes = [             { route: '', moduleId: 'home', tit...
I have a Durandal application, and I use router.mapUnknownRoutes to display a user-friendly error page if the URL does not correspond to a known route.  This works fine -- if I go to, say /foo, and that doesn't match a route, then the module spec...
Using the new symbol type in ES6 you can set non-iterable properties on objects. However when using Knockout these symbols are not observed by default.  It is possible to bind a symbol's value, but it is never updated as it isn't added to the...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.