title: Get Windows Username within Angular 2/4 application
body: <p>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.</p>
  
  <p>How can I get the windows username using angular 2/4? I am using the CLI to create my applications.</p>
  
  <p>All help is much appreciated. </p>