The jQuery unobtrusive validation was not working for asynchronously loaded html.
We fixed this by kick starting the unobtrusive validation:
// Kick start unobtrusive validation for async loaded content
var validator: any = $.validator;
npm for type definition files
One of the things that annoyed me was the tsd tool for installing type definition files.
Why can’t I just use npm, for installing type definition files. I use npm for installing external libraries en tooling so why not type definition files.
Well they are working on just that, kudos to the TypeScript thing.
Non nullable types
An other thing is non nullable types, I certainly want to have that in TypeScript.
It will be possible to tell the compiler, a certain variable is a string and not null or undefined. But you can also write: const x : string | null which means, x is a string or null but not undefined.
Down level async await support
TypeScript code which uses async await can target ES5
To align a HTML input[type=checkbox] with it’s label, just apply “display: inline” and “vertical align: middle” to both the input and the label:
The API has been built with Hypertext Application Language (HAL) to allows APIs to have built-in discoverability. Starting at the root of the API, you can browse the entire API surface.
Starting with version of ASP.NET 5 RC1, the statup.cs must have a static main, see:
After I added the main method, the error was fixed.