polymer Using external Javascript Libraries with Polymer Import a static HTML file

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

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]);
    


Got any polymer Question?