使用以下模板配置AngularJS/Typescript Web应用程序并收到以下错误.
The following error is appearing when I run the application:
0x800a139e - JavaScript runtime error: [$injector:modulerr] Failed to instantiate module app due to:
Error: [$injector:nomod] Module 'app' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
Run Code Online (Sandbox Code Playgroud)
我检查过这个帖子并确保我确实有一个对angular-route.js的引用
app.ts - 更容易查看的版本+ index.html
/// <reference path="./typings/angularjs/angular.d.ts" />
'use strict';
// Create and register modules
var modules = …Run Code Online (Sandbox Code Playgroud)