Configuring ASP.NET Core for Angular 2 Deep Linking

Angular 2 default routing uses history.PushState which allows us to use more natural routes such as “http://server.net/products/2” instead of “http://server.net/#products/2”.  We could still configure Angular 2 to use all state hash bang routes as well, but all modern supported browsers support pushState already, so why go with less supported configuration?  So, we should go on …

Continue reading ‘Configuring ASP.NET Core for Angular 2 Deep Linking’ »

Generic MVC View Controller for Angular Apps

I blogged many times before on use of CSHTML MVC views in Angular application.  They make it easier to implement things like validation and localization, as well as generate uniform look and feel for views.  However, I am still against using those views to serve the data.  The data should always come from data services, …

Continue reading ‘Generic MVC View Controller for Angular Apps’ »

Testing Controllers in Angular with Jasmine

I blogged a while ago about how to build ad-hoc test page for Angular / ASP.NET MVC Application.  In this post I will try to establish a pattern for testing Angular controllers using TypeScript and Jasmine.  Before you start, you have to use Nuget and bring in jasmine framework. I used version 1.3, as I …

Continue reading ‘Testing Controllers in Angular with Jasmine’ »

Detecting App Pool Recycling and Mitigating Its Effects

If you wrote any web apps using ASP.NET and IIS, you are familiar with the concept of app pools in IIS.  If you also used Entity Framework or any other library that requires some amount of work to warm-up, you have seen the effects of app pool recycling.  At that time application domain for your …

Continue reading ‘Detecting App Pool Recycling and Mitigating Its Effects’ »

Using SSRS In Angular / ASP.NET MVC Application

I blogged a long time ago about a pattern on how to show reports in an ASP.NET MVC application.  I have received a lot of request to share code, but I have lost the source code when I reimaged my machine.  Rather than recreating this from scratch, I decided to take a more advanced route …

Continue reading ‘Using SSRS In Angular / ASP.NET MVC Application’ »

Validation in Angular forms – Part 2

I blogged recently about implementing validation in Angular forms.  In this post I will talk about the pattern I use in my applications, both Angular and pure ASP.NET MVC to supplement JavaScript based validation on the server.  First of, I would like to start by making a case why I like to generate my forms …

Continue reading ‘Validation in Angular forms – Part 2’ »

Validation in Angular forms – Part 1

I am going to write a few (two I think) posts on how to implement validation in Angular applications.  In this post I am going to talk about showing validation messages and control form submittals.  In the next post I will improve on the concept by showing how to help the mundane tasks of creating …

Continue reading ‘Validation in Angular forms – Part 1’ »

Building Dynamic Menu with Angular JS, Web Api and ASP.NET MVC

First I would like to talk about using MVC views (CSHTML files) for Angular views.  In my option, I like powerful features that MVC views bring to the table.  I can for example, use my models to generate input controls and validation messages on the server automatically.  More on that subject in subsequent posts.  I …

Continue reading ‘Building Dynamic Menu with Angular JS, Web Api and ASP.NET MVC’ »

Create Jasmine Test Harness Page in ASP.NET MVC

In this post I will document how to quickly create a test harness page in ASP.NET MVC project that runs JavaScript tests using Jasmine unit test framework. First of all, let’s talk about project structure.  I have traditional ASP.MVC project and I am using Angular framework to build Single Page Application.  Hence, my project structure …

Continue reading ‘Create Jasmine Test Harness Page in ASP.NET MVC’ »

Talk at AMDev Meetup

I spoke at Atlanta Microsoft Developers Meet up yesterday.   I did the following talk.   Leveraging ASP.NET MVC and Knockout in a Web Application This session is all about leveraging the power of data binding from knockout and traditional ASP.NET MVC views with unobtrusive validation.  We will see how we can inject knockout binding using …

Continue reading ‘Talk at AMDev Meetup’ »