I have two pages.
One is login page and the other one is default page. These two pages have their own respective links.
If /login is typed in the browser url, it must load the login page.
Likewise, if /default page url is typed in the browser url section, it must redirect to the /login login page.
Each and every user must login into the login page to access the next page.
But, if the url of the second page is entered in the browser, it must redirect to the login page in angularjs