2016-07-13 4 views
1

スコープ '、function($ scope){ }]);また、必ずangular-route.js & angular-cookies.jsが正しく角度の後にロードさせるモジュールngCookiesの注入の代わりに、ngCookie

var myApp = angular.module('myApp',['ngRoute', 'ngCookies']); 

にタイプミスがあるよう

model app.js 


var myApp = angular.module('myApp',['ngRoute', 'ngCookie']);  

myApp.config(['$routeProvider','$locationProvider', 
    function($routeProvider,$locationProvider){ 

     $locationProvider.html5Mode(true); 

     $routeProvider.when('/',{ 
     templateUrl:'templates/users/login.html', 
     controller:'userController' 
     }); 

     $routeProvider.when('/dashboard',{ 
     templateUrl:'template/users/dashboard.html', 
     controller:'userController' 
     }); 

     $routeProvider.when('/logout',{ 
     templateUrl:'template/users/logout.html', 
     controller:'userController' 
     }); 

     $routeProvider.otherwise('/'); 
    } 

]); 
+0

プランナーを投稿できますか? – Srijith

答えて

0

は、それはそうです。

+0

@Apurvaはそれを助けましたか? –

関連する問題