I am creating a website using angular, and more specifically the angular-fullstack Yeoman generator. I need to include a "Pay Now" button, similar to that of paypal. But, when I add the required <script>
tag to my template, I get an error saying POST http://localhost/ net::ERR_CONNECTION_REFUSED
. However, if I add the <script>
tag to my main index.html file, it loads perfectly (except it places the button on the wrong part of the page).
Is this a common problem when trying to load a script in to an angular template? Is it angular-fullstack specific? Or is this just a completely unique problem? If so, what might be causing it?
Here are the examples of my code:
bill-pay.html (the file that throws the error)
<h1>Bill Pay</h1>
<script src="https://slice.cmsonline.com/js/slice.js" data-token="aaaaaf25aacesd9fccbd7aa2raaaa"></script>
index.html(The code that works)
<head>
...
</head>
<body>
<script src="bower_components/angular/angular.js"></script>
...
<script src="https://slice.cmsonline.com/js/slice.js" data-token="aaaaaf25aacesd9fccbd7aa2raaaa"></script>
</body>