Angular Child Routes Explained

Angular 2+ has a neat way to deal with child routes but those coming from AngularJS may find them a bit confusing. In this post, I will show how to use them with <router-outlet></router-outlet>for a seamless experience. First, lets take a look at an abbreviated version of the app-routing.ts file. const appRoutes: Routes = [ { path: ‘product/:id’, component: ProductComponent, children: …

The 3 Best Self-Help Books I Have Read in 2018…so far

I read quite a bit. I read to fall asleep. I read to pass the time between Pomodoros when I am taking the short break. I read during lunch. I also listen to audio books and subscribe to Kindle Unlimited so I have plenty of options. However, I don’t typically read the most recent fad books unless I think I …

The Case Against Self-Aware ViewModels in ASP.NET MVC

ViewModels in ASP.NET MVC are a valuable tool and are widely considered a best practice in developing MVC applications. In this post, I will make a case for why ViewModels should NOT be self-aware. ViewModels are a commonly used mechanism to deliver everything a View needs in a single object. Without them, you would have to push them to the …

Using Unity in ASP.NET MVC 5 in Less than 5 Minutes

Unity is a dependency injection framework built by the Pattern and Practices team at Microsoft. In this post, I will give you a quick overview of implementing Unity into an ASP.NET MVC project very quickly. What is Unity? Unity is a very nicely integrated library from Microsoft that has both configuration-based and code-based dependency injection options. In this post, I …