title: Reuse Angular 2 service in Chrome extension
body: <p>I have an Angular 2 app that talks to a webserver via an Angular service (By Angular Service I mean the client side code that talks to the webserver, which in Angular lingo also called 'Service'. <a href="http://angular.io/docs/ts/latest/tutorial/toh-pt4.html)" rel="nofollow noreferrer">example</a>)</p>
  
  <p>I would like to build a chrome extension that integrates with the address bar (<code>chrome.omnibox.onInputEntered.addListener</code>) and that reuses the service from my angular app so that the chrome ext will use the same code to talk to the server side service as the Angular app.<br>
  The Angular Service is written in TypeScript and uses Angular's http module and rxjs.</p>
  
  <p>Is it common to do so? what's the best practices for refactoring the service such that it's usable in both targets?</p>