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

Include jquery plugins on specific pages with angular/mvc5 #2803


User avatar
0
bilalhaidar created

Hello, How to include some jQuery plugins or angular plugins on specific pages and not all? I am using cshtml files in an MVC 5 / Angular 1.x app.

Thanks


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

    Hi,

    Have you tried @Html.IncludeScript("PathToScriptFile") ?

  • User Avatar
    0
    bilalhaidar created

    Nopes. I include that in the cshtml being rendered by Angular?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I haven't tried it but both approaches should work, what is the result of your try ?

    Thanks.