I just started using angular 2/4 to develop internal applications. All of the applications need to be able to get the username of the logged in user on windows machines. The angular applications will be hosted using IIS and Windows Authentication. When using angularJS I used a web form as the index page and got the windows username using .NET and storing the username on the webpage.
How can I get the windows username using angular 2/4? I am using the CLI to create my applications.
All help is much appreciated.