Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

remote-hosted javascript file #9128


User avatar
0
sidelineedge created

How do I successfully import a remote javascript file (https://js.stripe.com/v3/) into an MVC/Angular solution? Including the link in the layout header seems to do nothing.


1 Answer(s)
  • User Avatar
    0
    sidelineedge created

    Finally figured out a solution. Added the following to the \App\common\views\layout\layout.cshtml file.

    @Scripts.RenderFormat( "<script src='https://js.stripe.com/v3/'></script>", "~/Bundles/App/libs/js/stripe")