MVC as test scripts for Layout, View, Partial View

enter image description here I worked on one page to be partial, but I create it as one page. I include the scripts necessary for the job and complete all the functionality.

<head> <title>angular-table : sortable tables with pagination for angularjs</title> <script src="/GTracker/Scripts/jquery-2.2.2.min.js"></script> <script src="/GTracker/Scripts/angular.js"></script> <script src="/GTracker/Scripts/angular-table.min.js"></script> <script src="/GTracker/Scripts/app_angular_cars.js"></script> 

In the main view, I declare jsTree and BlockUI. When loading the view for the first time works fine, create a tree. And make an ajax call to load the partial view and angular load ok too. But then jsTree and blockUI stop working

enter image description here

After some attempt, if I remove Jquery from Partial View, the angular table does not load (even if JQuery is on the layout), but jsTree and the block continue to work.

I try to move all of these scripts into the layout and in the @script section on the main view, but then angular does not work.

What am I doing wrong?

Where should I include a script so that each view can use angular?

And can I check Partial View alone? Or should I check its inclusion in the project from the very beginning?

0
source share

All Articles