How to use typescript in browser?

后端 未结 4 553
無奈伤痛
無奈伤痛 2020-12-31 04:21

utility.ts

let books = [
    { id: 1, title: \"the dark window\", author: \"krishna\", available: true },
    { id: 2, title: \"naked eye\", author: \"sydney         


        
4条回答
  •  感情败类
    2020-12-31 05:04

    Im new to AMD but it looks like you only define the modules, never invoke/import them to the sites scope. In this tutorial the author has a bootstrapping file that acts as entry point for an app which seems to be what you're missing: http://www.codebelt.com/typescript/typescript-amd-with-requirejs-tutorial/

提交回复
热议问题