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
3
votes
2 answers

HotTowel SPA with Facebook SDK

I've started a new Visual Studio 2012 Express Web project using the HotTowel SPA template. I'm not sure where I should be placing the code to load the Facebook SDK within the HotTowel structure? I've tried main.js, and shell.js but I can't seem to…
3
votes
3 answers

Authentication / Authorization in Hot Towel Template

How can I provide authentication / authorization for an asp.net mvc 4 web application that is built on Hot Towel template. All the views are considered as html pages. In this case how can I redirect my user to login view when s/he requests a view…
xkcd
  • 2,538
  • 11
  • 59
  • 96
3
votes
2 answers

Infragistics Ignite UI grid with Hot Towel/Durandal SPA app

Does anyone have any experience integrating Infragistics Ingite UI controls into a Hot Towel/Durandal SPA application? I've integrated this ig sample in a basic Hot Towel…
3
votes
2 answers

Disable Durandal inline styling

Durandal appears to automatically add the following inline styling to the div elements wrapping its data-views: style="margin-left: 0px; margin-right: 0px; opacity: 1; display: block;" This occurs in both the Durandal and John Papa Hot Towel…
chrisjsherm
  • 1,269
  • 13
  • 17
3
votes
1 answer

link to another controller with hot towel and durandal

I am developing an mvc4 app with multiple spa's. I am using the hot towel template for my spa. What I want to do is have a anchor link within my views for a spa go to the index action for another controller, so my users can exit one spa and…
mike
  • 51
  • 7
3
votes
1 answer

durandal mvc app authentication security

I was able to successfully use (code from index view) @if (@User.Identity.IsAuthenticated) {
@Html.Partial("_splash")
@Scripts.Render("~/scripts/vendor"); …
Richard Davison
  • 141
  • 1
  • 7
3
votes
1 answer

How to process time consuming serverside initialization in MVC?

I currently started a little project, expieriencing the world of JS and HTML5. I tried a few months ago, already, but I stopped, because I've had not enough time to create a MVC single page application from scratch. There were too many concepts and…
2
votes
1 answer

how to catch sql exception in breeze js

I have a problem in HotTowel template. how can I catch sql duplicate unique key value exception in breeze js and display that? my controller: [BreezeController] [System.Web.Http.Authorize] public partial class DataServiceController :…
Nima
  • 33
  • 3
2
votes
1 answer

Module 'angularGrid' is not available! with ag-grid and HotTowel

I’m somewhat new to AngularJS and the HotTowel toolchain. The bower install of ag-grid places appropriate (.css & .js) links in the index.html file. The dependency to ‘angularGrid’ has been attempted against different modules (e.g. app, core, etc.)…
Ray Heath
  • 23
  • 1
  • 3
2
votes
1 answer

angularjs-translate-loader-static-files with HotTowel template

I am trying to use angular-translate with static file-loader. My application is based on HotTowel template and below is my modified config file. I have added references to angular-translate-loader-static-files.js and angular-translate.js correctly…
RasikaSam
  • 5,363
  • 6
  • 28
  • 36
2
votes
1 answer

breezejs- how to add a new child entity and attach it to parent's collection of children

I have a model with navigation property from database. The structure of the model is as follows public class Parent{ public string propertyone {get; set;} public IList children {get; set;} } public class Child{ public string…
jpo
  • 3,959
  • 20
  • 59
  • 102
2
votes
1 answer

What makes these two require.js calls different from each other?

I am currently experimenting with the Hot Towel SPA Template, which defines these two libraries for Durandal if I understand this correctly. I cannot figure out the exact difference between these two calls, though: // Durandal 2.x assumes no global…
Michael Schnerring
  • 3,584
  • 4
  • 23
  • 53
2
votes
2 answers

Hot Towel Angular-Breeze course - getting breezeProvider errors

I am following every step of the way in John Papa's course, Building Apps with Angular and Breeze - Part 1. Once I got through the module entitled "Start playing at first clip Creating Vertical Slice Through Your App", I started to get…
bob.mazzo
  • 5,183
  • 23
  • 80
  • 149
2
votes
1 answer

To whom return is returning the value (javascript)?

I saw following code in the HotTowel project. In the following code, callback method for then returns value return vm.messabeCount = data; (function () { 'use strict'; function dashboard(common, datacontext) { vm.messageCount = 0; …
Pavan Kumar
  • 1,715
  • 1
  • 24
  • 48
2
votes
1 answer

Breeze.js - getting error trying to use "any" operator - error: Unable to get value of the property 'isAnonymous': object is null or undefined

I am trying to use the "any" operator in Breeze to query a many table and I am getting the following error - TypeError: Unable to get value of the property 'isAnonymous': object is null or undefined The only stackoverflow question I can find that…