Angularjs Angular正在打印管线,而不是在视图中渲染局部

Angularjs Angular正在打印管线,而不是在视图中渲染局部,angularjs,angular-routing,Angularjs,Angular Routing,我已使用$routeProvider将我的应用程序设置为: 我的index.html是: 当我打开索引页时,我会看到超链接,但当我单击它时,会显示文件路径,而不是在中呈现 修复了,我会把它留在这里,以防其他人出现同样的症状: 我的路由配置中的语法错误:应该是: angular.module('myApp', []) .config(['$routeProvider', function($routeProvider){ $routeProvider

我已使用$routeProvider将我的应用程序设置为:

我的index.html是:

当我打开索引页时,我会看到超链接,但当我单击它时,会显示文件路径,而不是在中呈现


修复了,我会把它留在这里,以防其他人出现同样的症状:

我的路由配置中的语法错误:应该是:

angular.module('myApp', [])

    .config(['$routeProvider', function($routeProvider){
        $routeProvider
            .when('/authorisation', { templateUrl: 'templates/authorisation.html', controller: AuthenticationController})
            .otherwise({redirectTo: 'templates/404.html'});
    }]);

修复了,我会把它留在这里,以防其他人出现同样的症状:

我的路由配置中的语法错误:应该是:

angular.module('myApp', [])

    .config(['$routeProvider', function($routeProvider){
        $routeProvider
            .when('/authorisation', { templateUrl: 'templates/authorisation.html', controller: AuthenticationController})
            .otherwise({redirectTo: 'templates/404.html'});
    }]);

使用templateUrl,而不是templateCheers,我不确定我是从那里得到的!使用templateUrl,而不是templateCheers,我不确定我是从那里得到的!
angular.module('myApp', [])

    .config(['$routeProvider', function($routeProvider){
        $routeProvider
            .when('/authorisation', { templateUrl: 'templates/authorisation.html', controller: AuthenticationController})
            .otherwise({redirectTo: 'templates/404.html'});
    }]);