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

access 3rd party js from inside our app #2378


User avatar
0
avanekar02 created

hello i want to access a 3rd party control pptxgen from our index.js file

i have attached a snapshot of the code running on top you can see the shape.js file and below the unpr error

i have put the 3rd party scripts in the lib folder and put a correct path in the App_start/ScriptsPath as follows

public const string pptxgen = "~/libs/pptxgenjs/pptxgen.js";


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I have just asked for your index.js code in another topic and saw it here :). Since this is not an angular plugin, you cannot inject it like this to your controller.

    You need to create it as explained here <a class="postlink" href="https://github.com/gitbrent/PptxGenJS#presentation-basics">https://github.com/gitbrent/PptxGenJS#p ... ion-basics</a>, whenever you need it in your index.js.