Setting up Angular 2 Project to use HTTP

I recently was working on an Angular 2 demo that demonstrate top to bottom application development.  It took me a couple of hours to figure everything our, so I wanted to take a few minutes to document my steps. First things first, we have to include necessary script files for both Angular 2 and HTTP.  …

Continue reading ‘Setting up Angular 2 Project to use HTTP’ »

Writing Less TypeScript Code in Angular Apps

I have been working on a number of Angular apps in the past 2 years, since I first heard about Angular and started studying the technology.  I wrote my first TypeScript app using TypeScript 0.4, which also used Angular about 1.5 years ago.  I blogged about my experiences previously quite a few times.  Here is …

Continue reading ‘Writing Less TypeScript Code in Angular Apps’ »

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’ »

VS Live 2014 Chicago

Yesterday I spoke at Visual Studio Live event in Chicago.   I presented two talks, really on the same topic – building web applications with TypeScript and Angular.  My demos and presentations actually touched on a number of other technologies – Entity Framework, Web Api, ASP.NET MVC.  I wanted to post the slides and demos. Build …

Continue reading ‘VS Live 2014 Chicago’ »

Leveraging Forms Authentication in Web Api

Web Api technology is not like ASP.NET MVC, even though the two are often used together.  Although most people probably host Web Api inside IIS, and I do as well, Web Api does not take dependency on System.Web or IIS.  This allows you to self-host Web Api 2.0 application in your own process, such as …

Continue reading ‘Leveraging Forms Authentication in Web Api’ »

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’ »