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 […]

Angular 2 Token Based Authentication with Auth0

Two part series where I implement token based authentication using Auth0 in 20 minutes, enjoy! Part I: Signup, Login and Logout Part II: ExpressJS backend Stay tuned for more screencasts, cheers!

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 […]

Navigate Code Efficiently with JetBrains ReSharper in VisualStudio

Started a new series on efficiency in visual studio with resharper, here’s the first part that’s on navigating the code. What’s your favorite navigation shortcut? Shortcuts used in video: Ctrl + Shift + T: Find everything Ctrl + T: Find files Ctrl + F12: Go to Implementations Shift + F12: Find Usages Ctrl + Alt […]