title: Is this the proper way to wrap a third-party library as an Angular.js service?
body: <p>I'm trying to wrap Snap.svg as a service of my application. The code below works, but is this the right way to go about it?</p>
  
  <pre><code>var svgService = angular.module("svgService", []);
  
  svgService.factory("svgService", [
    function () {
      if (Snap) {
        return Snap;
      }
    }
  ]);
  </code></pre>