を働いていない私は、次のように以下のUIビューangularjs
var app = angular.module("productManagement",
["common.services",
"ui.router",
"productResourceMock"]);
app.config(["$stateProvider",
function($stateProvider){
// Products
$stateProvider
.state("productList", {
url: "/products",
templateUrl: "app/products/productListView.html",
controller: "ProductListCtrl as vm"
})
}]
);
が、それはコンソールにエラーが表示されない私のindex.html
<body ng-app="productManagement">
<div class="container">
<div ui-view></div>
</div>
</body>
で、UI-ルートを使用してルートを設定して、ビューは全く表示されません!! は、それはあなたが持っている「ルーティングの設定」デボラKuratahエピソード26でwww.pluralsite.comから、これは当然ビジネスアプリケーションのAngularJSラインの一部であるだけでルート
を追加する前に、正常に動作する
が定義されていない場合は、家庭へのデフォルトルート 2.リダイレクトを持っているあなたは間違いなく正しい場所に 'productListView.html'を持っていますか:'アプリ/製品/ productListView.html'? –
プロダクトリストビューが正しいパスにあるかどうかをチェックするだけです。 –
はい正しいパス:productManagement \ app \ products \ productListView.html –