Entries by ajtowf

Angular 2 Material Replacing Bootstrap

In this weeks screencast we fully replace bootstrap with material components for angular 2. Material2 just announced their alpha 2 release, adding a bunch of components, perfect timing for live coding screencast, code at https://github.com/ajtowf/ng2_play. The ng2play repo has also been updated to the latest angular2 version which at the time of writing is beta […]

Angular 2 Material First Look

In this weeks screencast we take a first look at the material components for angular2 that just released their first alpaha, code at https://github.com/ajtowf/ng2_play. We’ll integrate the button and checkbox component into our ng2play repo, the idea is to fully replace bootstrap down the road. Screencast Components There will be breaking changes between alpha releases, […]

Angular 2 Lifecycle Hooks

New screencast on Angular 2 beta 9, covering Lifecycle Hooks, get the code at https://github.com/ajtowf/ng2_play. Screencast The Lifecycle Hooks Directive and component instances have a lifecycle as Angular creates, updates, and destroys them. Here’s the complete lifecycle hook interface inventory, all of them available in the angular2/core library and called in the provided order. OnChanges: […]

Connection leaks when using async/await with Transactions in WCF

If you’re getting “The current TransactionScope is already complete” from service calls that don’t even consume transactions, you’ll probably want to read/see this. Screencast and Code The code can be found on github, https://github.com/ajtowf/dist_transactions_lab, one change I did since the recording is that we don’t create the nhibernate factory with each call, we now use […]

Angular Material Fundamentals Course at Pluralsight

Angular Material Fundamentals course released at pluralsight, make sure to check it out here, https://www.pluralsight.com/courses/angular-material-fundamentals, course trailer below: New course: #Angular Material Fundamentals by @ajtowf. Build responsive sites w/ Angular Material + Material Design: https://t.co/miGN1tXf5o — Pluralsight (@pluralsight) February 18, 2016 Hope you guys enjoy the course and learn a lot, and as always, have […]

Distributed Transactions in WCF with async and await

TL;DR? See my screencast explaining problem instead: Problem When flowing a transaction from a client to a service Transaction.Current becomes null after awaiting a service to service call. Unless of course you create a new TransactionScope in your service method as follows: [OperationBehavior(TransactionScopeRequired = true)] public async Task CallAsync() { using (var scope = new […]