首页 > 解决方案 > 我收到错误 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.4.7/$injector/modulerr (只是一个要测试的 hello world 应用程序)

问题描述

我开始创建角度视图。我尝试休息 angular js 是否正确渲染但收到此错误

未捕获的错误:[$injector:modulerr] http://errors.angularjs.org/1.4.7/$injector/modulerr

我的脚本序列看起来像这样:https ://i.ibb.co/VCgrk83/scrpt.png “脚本序列”

测试应用程序,如:

    <script>
        angular.module("app", []).controller("HelloWorldCtrl", function ($scope) {
            $scope.message = "Hello World"
        })
    </script>

我只是 GET {{message}} 并且没有呈现表达式

应用程序快照:https ://i.ibb.co/W5QgNBm/scrpt.png

感谢您的投入!!!

标签: htmlangularjsasp.net-mvc

解决方案


推荐阅读