Questions tagged [hottowel]

Hot Towel is a Visual Studio Template for creating a Single Page Application (SPA).

Hot Towel is a Visual Studio Template for creating a Single Page Application (SPA). It is built using the following components:

Hot Towel is delivered in three different forms:

The Hot Towel template was authored by John Papa, and is described in detail on his site.

333 questions
2
votes
3 answers

HotTowel Angular Breeze config not defined

I am following the HotTowel Angular course by John Papa with the latest Hot Towel version 2.1.0, however I am getting an Error "config is not defined" occurring when my query is executed. function getServerPartials() { var orderBy =…
user2350144
  • 33
  • 2
  • 5
2
votes
1 answer

Using return $q.when in Hot Towel Angular datacontext

I've created a web application using the Hot Towel Angular template, and I want to add a service function to the 'datacontext'. Code is: (function () { 'use strict'; var serviceId = 'datacontext'; …
Stef Heyenrath
  • 9,335
  • 12
  • 66
  • 121
2
votes
2 answers

Durandal: Widget's activate callback not behaving like a regular viewmodel's callback

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…
dlabarca
  • 119
  • 2
  • 10
2
votes
2 answers

Durandal 2.0 "routes"

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', title: 'Home', nav: 1 }, …
2
votes
2 answers

Hottowel or Kendoui SPA with kendo ui library?

I am planning to start a new project where i am planning to go for SPA route. As i am goint to use Kendo ui , I have two choices with me either to use Hottowel and use Architectural advice for a SPA ASP.NET application or to go for Kendo UI SPA. I…
2
votes
1 answer

Static module declaration using Durandal and Require

I'm using Durandal and Require for my SPA application. Also I'm using HotTowel template from John Papa. For my modules, I need some of them to be created per request and some of them to be singleton. define([], function(){ var bookId =…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
2
votes
1 answer

Conditional routing in Durandal

In my HotTowel based project, I'm using Durandal 1.1.1 for routing. I have a login route, which I want to activate if the user is not logged in. my route config is like: var routes = [ { url: 'login', moduleId: 'viewmodels/login', name:…
mehrandvd
  • 8,806
  • 12
  • 64
  • 111
2
votes
5 answers

Durandal SPA Taking Over Regular Website Routing

I'm building a plain old website that has a single page application in one of it's pages. There are other pages on the nav bar, such as Home, About, Blog, with my app being in Dashboard. After looking through my SPA option, I've decided to try…
2
votes
1 answer

jQuery Mobile Autodivider Not Formatting Correctly - Using Hot Towel Views

I'm trying to get my list to look like this: But it looks like this: I've copied the code directly from the jQuery mobile site:
2
votes
2 answers

Dropdown menu won't close

I tried this in a test page and it works fine.
2
votes
1 answer

ko commands Embedded in comment tags?

I am trying to understand HotTowel more. In ~/App/views/shell.html, it contains:
Are ko commands embedded within Html comment tags? If so, what does the compose command do and how…
Old Geezer
  • 14,854
  • 31
  • 111
  • 198
2
votes
1 answer

how to build dynamic call to javascript function using asp.net mvc and knockoutjs

I am building a mvc aplication using as template HotTowel (you know, durandal, knockout, breeze,etc). The application is not ready yet we are doing good progress :). At the middle of one funcionality I need to build a dynamic call to javascript…
Rolando
  • 752
  • 1
  • 14
  • 41
2
votes
1 answer

containerless statements of knockoutjs is not working in hottowel SPA?

I was trying to use the containerless statements like of knockoutjs in hot towel template but it was not woring instead if i use visible binding with some element like div then it work very fine.(
Kapil Garg
  • 3,100
  • 5
  • 19
  • 19
2
votes
1 answer

How does Hot Towel deal with authentication & personalization?

I really like the concepts behind Hot Towel, and have viewed the course on Pluralsight a few times now to really get a good idea of what's going on. One aspect of Hot Towel really eludes me - how can it be used for an application that demands…
Graham
  • 7,431
  • 18
  • 59
  • 84
2
votes
1 answer

Formatting Dates retrieved by Breeze using moment.js. Hot Towel Template

I have been following John Papa's Hot Towel Tutorials and I have a c# class that looks like this: public class Lead { public int LeadId { get; set; } public DateTime? LastContactMade { get; set; } public DateTime? LastContactAttempt {…
John Gurski
  • 91
  • 2
  • 6