FORCE NPM to use latest version of TYPESCRIPT

Re posted from: http://www.davevoyles.com/2016/02/14/how-to-force-npm-to-look-for-the-latest-version-of-typescript/   I recently started using TypeScript for a new project, and hit a few snags along the way. The first of which, was that my local project was using an older version of TypeScript, specifically 1.0.3.0 . This was odd, because I had just installed the latest version of TypeScript, but globally and locally. […]

JQUERY $(element, plainObject)

I ran across this article and a set of interesting jquery syntax:  $(‘<li>’, { text: formatItem(item) }).appendTo($(‘#products’)); So after stumping a few folks and searching the jquery documentation I figured out what exactly it is doing mostly. This explains the syntax:  http://api.jquery.com/jquery/#jQuery-html-attributes This explains why its flexibility can lead to unintended consequences… While the second argument is convenient, its […]