私はUIルータ(https://github.com/angular-ui/ui-router)で角度1を使用しています。ここで角度ルータとUIルータ - テンプレートがロードされていますが、ドキュメントに何も表示されません。
は次のように私のメインapp.jsがどのように見えるかです:事がある
var myApp= angular.module('myApp', [
'ui.router'
]);
myApp.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise("/overview");
$stateProvider
.state('overview', {
url: "/overview",
templateUrl: "templates/overview/overview.html"
});
});
私は、ドキュメントにoverview.html
何も表示さをロードすることができるよ、
angular.js:11821 XHR finished loading: GET "http://localhost:8000/templates/overview/overview.html".
(確かにファイルは空ではありません)
これがどうして起こるのかよく分かりません。
これは本当に問題です:)それは注意するのは難しいことでした。ありがとう – user3800799