title: Angular 2 and MySQL concepts
body: <p>Are there recommended concepts how to access MySQL from an Angular 2 application?</p>
  
  <p>I'm new to Angular and Typescript. I found and installed the <code>node-mysql</code> package. I would like to SELECT some datasets for computational analysis and some graphical representation (perhaps with d3).</p>
  
  <p>My own concept would be to implement a singleton service encapsulating the connection and SQL calls. </p>
  
  <p>But perhaps I am thinking too old school here? Perhaps there should be a different approach? </p>
  
  <p>On the practical side, I'm uncertain how to import the <code>node-mysql</code> package in Angular2 / Typescript - by importing the package at the top?</p>
  
  <p>If someone could point me to an example, I'd be glad to learn.</p>