I am new to angular JS. I am gradually learning it and finding it interesting.
I have a "Login" html page and a "Home" html page. "Home" html page displays navigation menu that open up other html pages.
Same ng-app and ng-controller (see below code) are declared in both "Login" html page and "Home" html page. (Both are using same angular module js.)
<html lang="en" ng-app="demoAppModule" ng-controller="DemoAppController">
I am opening up "Home" html page when user is successfully authenticated in Login controller (js).
To open the "Home" html page I am using $window.open() in Login controller (js). I am passing the loginid as query string (see below code) along with the "Home" html URL.
$window.open("http://localhost:8083/home.html?loginid=" + loginid, "_self");
How to retrieve the loginid from query string in the Home controller js?