Adding 3rd party JS code

I’m currently making a moble app to identify a color when you select a part of an image. I want to use the code as demonstrated here:

So far, I have downloaded the folders from Github and have tried putting:
<eyedropper img-src = "{{loadimage}}" ng-model="eyedropperColor"></eyedropper>

in my html file but I get this error.


How do I go about adding this 3 party JS code to my Ionic app? I’ve looked at a ton of other discussions. I have added

<script src=""></script>
  <script src="pages/second/js/eyedropper.js"></script>

to my src/index.html file but nothing works.