Jasmine spies are a great and easy way to create mock objects for testing. By using a Spy object, you remove the need to create your own function and class stubs just to satisfy test dependencies. Some TypeScript Code Let’s say you have this service for saving a person: iperson-service.ts /// <reference path=”resources/idata-context.ts” /> /// […]
TypeScript
Writing Cleaner AngularJS with TypeScript and ControllerAs
Our team made the move to TypeScript and Angular at the tail end of last year. I’d had a look at Angular a year or so ago but struggled to get my head around the excessive usage of $scope and the nesting of $parent items that needed to be traversed. Since then (with version 1.2.0), […]