Skip to content

An example of how to use TypeScript with KnockoutJS, RequireJS (AMD loader) and jQuery (with plugins).

Notifications You must be signed in to change notification settings

xurunxin/TypeScript-KnockoutJS-RequireJS-jQuery-Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This example project demonstrates how to get TypeScript, KnockoutJS, RequireJS and jQuery to play nicely together.

It uses the latest TypeScript source from the develop branch of http://typescript.codeplex.com.

How to

  • Download TypeScript v0.8.3 or newer
  • Build tsc ./js/app/main.ts (without the --module AMD argument).

Note

I was using --module AMD for a while but it's just too hard to use RequireJS plugins (like require.text) and the per-module config (see index.html). You have to use the ///<amd-dependency /> undocumented feature and it just barely works.

References:

About

An example of how to use TypeScript with KnockoutJS, RequireJS (AMD loader) and jQuery (with plugins).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published