Friday, 15 January 2010

angularjs - does not route to page using ngRoute? -


The request is not redirected to the login page. Before this I use the ui-router , it redirects the request to the details page. Then I was transferred to NG-Route. But the problem is that it does not route to the login page.

  app.config (function ($ migration provider) {$ routeProvider. When ('/: Category', {templateUrl: "View / ('/: AllP', {templateUrl:" views / When ('/ contact', {templateUrl: "views / views") when the ("/ home"), "all.property" ("/ Login.jsp" Controller: "Login Controller"}) .When ('/ login', {templateUrl: "views / details.jsp", controller: "details controller"}) / 'Signup', {templateUrl: "views / signup.jsp"}.) ('/ Resetpassword', {templateUrl: "view / forget .jsp"}). Otherwise ({redirectTo: "/: Category"} )});  


No comments:

Post a Comment