Thank you to everyone that came to my talk last night at Tech Talk DC, and thanks to the hosts for putting the evening together. I enjoyed our time together and my conversations with those of you I spoke with individually before and after. I hope you found at least a few things that we talked about useful. I wanted to share my slides and code samples with anyone that was interested in delving deeper on any topic. The organizers tell me the session will be available on video soon, too. I’ll update with a link here when it is. Remember to give at http://bit.ly/dc-gives before Friday and include “Tech Talk DC” in the
Continue reading...
I first installed the Batarang plugin for Chrome a couple of years ago as a way to debug AngularJS apps. It worked great, and I never looked back–until recently, that is. In the last few months, the plugin gradually stopped working, and then even more recently, it also started breaking any AngularJS applications I navigated to in Chrome. Back in December of 2014, the author of Batarang asked for help from the community, saying “it’s clear to me that I haven’t given the time to Batarang that it deserves.” Unfortunately, it seems like this call for help hasn’t produced the desired effect because the latest update to Batarang was released a few days
Continue reading...
In ASP.NET, it can be helpful to know when a request is an AJAX call (made via XMLHttpRequest, that is) as apposed to a standard HTTP request. This can be detected with ASP.NET’s Request.IsAjaxRequest() method. This helper method returns true whenever the HTTP request contains the header “X-Requested-With” with a value of “XMLHttpRequest“. JQuery handles this automatically for you with any calls made using its $.ajax() method. AngularJS, however, does not. When you’re creating and AngularJS application, this can make it difficult to detect when a request to the server was an AJAX request or not. Have no fear, though, you can fix this problem with one simple line of code in our AngularJS
Continue reading...