Create a simple decorator that when applied to a computed property, will cache the result of the first read, and use that instead in subsequent calls.Merott
A web developer's tips, tricks, opinions, and rants – all from the comfort of the couch.
When writing TypeScript, we try to think of everything in terms of classes and types, so when it comes to writing a `$http` interceptor, the question is how to express it in terms of a class. In this blog post I'm going to show you how you can define interceptors using TypeScript in AngularJS 1.x.Merott
I really liked the new router’s conventional approach to registering controllers and templates, especially because of the amount of boilerplate code that it helps us avoid. In this post I\'m going to show you how to do something similar for ui-router, and some more automation by decorating $templateCache.Merott
Why Blog? I’ve always been appreciative of the efforts made by the developers community in sharing their knowledge and experience with the rest of the world through blogs, online communities such as StackOverflow, and Open Source software. I hope to be able to give something back and make a contribution to that amazing community. [...]Merott