title: Angular2, load server side json file each time page is accessed
body: <p>Hope that I am barking down the right path, but I had a question regarding Angular2 / Node / Webpack and having one of the pages that you created access a file on the server side to chart the contents.</p>
  
  <p>I am new to Angular2 and am slowly working my way to learn more and more about it, and one of the projects I am trying to work on to help me with this learning is to transition a 'self service' page that I have for product license counts.</p>
  
  <p>The page was originally based on a LAMP stack and I used PHP to load my content file so that I could use jquery to render some graphs that showed how many licences were in use. That content file was json based, and was updated every hour.</p>
  
  <p>I have started to convert my self service page using the following theme:</p>
  
  <p><a href="https://github.com/akveo/ng2-admin" rel="nofollow">https://github.com/akveo/ng2-admin</a></p>
  
  <p>So far it has been going great, but of course my challenge is 'how do i read a server side file with angular2'. I started looking at the 'require(fs)' topics, but I couldn't quite get it working, so I wasn't sure if that library was actually executing server side, or client side.</p>
  
  <p>Any and all help would be appreciated. Basically what I am trying to accomplish is:</p>
  
  <p>User clicks on link - page reads server-side json file - saves contents to variable - variable used to create jquery/angular/etc charts. - - refreshing page re-reads file.</p>