相关疑难解决方法(0)

AngularJS打字稿路由

使用以下模板配置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)

我检查过这个帖子并确保我确实有一个对an​​gular-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)

angularjs typescript

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

angularjs ×1

typescript ×1