I am not able to change the URL and call html as desired
When i am at home page my url should have login . here is my plunker link too for reference: - http://plnkr.co/edit/6OKA6VtH5qAFzygiS5RY?p=preview run.plnkr.co/VqxyVuraDTBrBUbZ/ but i want the url as **run.plnkr.co/loginPage** And if you will see my controller.js .If i able to succesfully login i should display dashboard.html and url should *run.plnkr.co/Dashboard* How can i achieve this My routing config is as below (function(){ var app = angular.module('mainApp', ["ngRoute"]); app.config(function($routeProvider) { $routeProvider .when("/main", { templateUrl: "index.html" }) .otherwise ( {redirectTo: "/"}) }) }()); -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
