How can I use a class for my shell viewmodel in Durandal?
问题 I'm having a look at the Hot Towel template, and trying to get it to work in TypeScript, I've encountered a problem converting the shell viewmodel. I'm trying to translate this into TS, and it makes more sense to me that it should be a class, rather than simply exporting functions as shown here. I looked at this approach but, paying attention to the comments here, decided against following it. After a bit of digging I found this thread, which suggested it should be as simple as overriding