(Update) Finding current URL with Angular 2.0 Routing

Thursday, June 23, 2016

Previously I’ve posted about finding current URL with Angular 2.0 Routing which was suitable for rc-1. On Angular 2.0 rc-3, the angular router (alpha 3.0.0) has been added to the repository with much easierAPI for getting the current URL. Let’s have a look at the following code (Typescript) 1: constructor(private _router:Router){ 2: 3: } 4:  5: ngOnInit():any { 6: this._router.subscribe(event => { 7:...
no comments

Finding current URL with Angular 2.0 Routing

Tuesday, June 7, 2016

  For an application built with AngularJs 2.0 (rc1) I wanted to do one simple thing: To highlightthe current active navigation  bar item. However, I’ve had to do it with the new angular router, the one that currently lacks documentation. So after a few searches online and digging through the router object I’ve reached the solution I want to share.   Let’s start with the solution itself: (Taken from the application’s entry component) 1: constructor(private router:Router){ 2: router.changes.subscribe(route =>{ 3: ...
2 comments

Configure your ASP.NET application that uses routing in IIS-6

Tuesday, January 11, 2011

Configure your ASP.NET application that uses routing in IIS-6 Recently I’ve come across the need to have my own routing handlers in ASP.NET application. After coding our routing handler in our ASP.NET application (available in .NET 3.5 and in much easier way in .NET 4) Since IIS-6 doesn’t use .Net as a natural part of it’s pipeline there is a need to do some configuration. 1. Go to your IIS-6 management console, choose your ASP.NET application, and click properties. ...
one comment