为什么我的html无法识别角度标签?

时间:2016-06-30 01:36:02

标签: c# angularjs asp.net-mvc angular-material web-frontend

我的HTML确实识别角度标签,我在我的网络解决方案中安装角度,我在捆绑中注册,我将这些添加到我的布局

  <link href="~/Content/angular-material.css" rel="stylesheet"/>
    <link href="~/Content/angular-material.min.css" rel="stylesheet"/>
    <script src="~/Scripts/angular-material/angular-material.js"></script>
    <script src="~/Scripts/angular-material/angular-material.min.js"></script>

我的角度束

 bundles.Add(new ScriptBundle("~/bundles/angular")
              .Include("~/Scripts/angular.js",
              "~/Scripts/angular-aria/angular-aria.js",
              "~/Scripts/angular-animate/angular-animate.js",
              "~/Scripts/angular-material/angular-material.js"));

我注入了我的应用程序

(function () {
    "use strict";

    angular.module("app.controllers", []);

    var dependencies = [
        "ngRoute",
        "app.controllers",
        "ngMaterial"
    ];

    angular.module("app", dependencies)
    .config(["$routeProvider", function ($routeProvider) {
        $routeProvider
            .when("/users", { templateUrl: "Frontend/views/users.html", controller: "usersCtrl" })
            .when("/user/add", { templateUrl: "Frontend/views/userAdd.html", controller: "userAddCtrl" })
            .when("/user/:id", { templateUrl: "Frontend/views/userDetails.html", controller: "userDetailsCtrl" })
            .when("/user/edit/:id", { templateUrl: "Frontend/views/userEdit.html", controller: "userEditCtrl" })

        .otherwise({
            redirectTo: "/users"
        });
    }]).run(function () {

    });
}())

然而,当我在我的部分html中写一个标签角度时,它就是例如 “无法解析标签md-content”

0 个答案:

没有答案