polymer Import a static HTML file


Example

  1. Create an HTML file (in this example libraries/turf.html) with the library you want to load:

    <script src="../../bower_components/turf/turf.min.js"></script>
    
  1. Import the HTML file (libraries/turf.html) in your component with the rest of your imports:

    <link rel="import" href="../../bower_components/polymer/polymer.html">
    <link rel="import" href="../libraries/turf.html">
    
  2. Invoke your library (example usage):

        var point = turf.point([42.123123, -23.83839]);