15 May

Use jQuery in Angular/Typescript without a type definition

typescript

Together with Angular, Typescript is fast gaining popularity although it already exists since 2012.

Typescript is not your common JavaScript, but it gets compiled to JavaScript. Nevertheless it’s not always that simple to just copy some JavaScript code into your Typescript and make it work. To do this, you’ll sometimes need TypeScript type definitions which can be downloaded from various sources. Or you can simply use the InjectionToken from the Angular/Core package.
In this post, I’ll show you how to use it with jQuery.

Read More

28 Jan

How to set up Angular E2E Testing – Protractor

Angular JS
As applications grow in size and complexity, it becomes unrealistic to rely on manual testing to verify the correctness of new features, catch bugs and notice regression. Unit tests are the first line of defense for catching bugs, but sometimes issues come up with integration between components which can’t be captured in a unit test. End-to-end tests are made to find these problems.~ Angular

Now lets see how you set this up on your local computer.

Read More