Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ng-grid paging
Message
 
 
To
27/10/2014 08:00:46
General information
Forum:
Javascript
Category:
Other
Title:
Miscellaneous
Thread ID:
01609778
Message ID:
01609965
Views:
29
>>AFAIK there was no previous working version and the relevant code that requires debugging is relatively small. At the end of the day if you want to fix a problem (and *know* that it is fixed) you have to identify the cause.
>>
>
>Full ACK on the need to identify the cause. But stripping own code away on a foreign control is a sound idea, as it eliminates (in this case as well) code not responsible for the misbehaviour. Going in and adding code before trying out new other controls and having a valid map of what is working and what not is not something I would do - so your key phrase is correct.

I am not sure how was I supposed to debug the issue with ngGrid (having originally only min version of the js file in the project). I can see that my code was correctly executing, but I never saw any of ngGrid code executing at all and tracing through all the angular code that runs is almost impossible.

So, if you can suggest some debugging techniques for this kind of a problem with third party control, it would be nice.

I also have unrelated question. What is the difference between declaring

var SomeVar

vs.

$scope.SomeVar

and when should I use one over the other if I only need that variable, say, in defining cellTemplate?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform