Quite often when testing some functionality, you’ll want to scroll the page you’re looking at – particularly in Protractor, which yells at you if you try and interact with an element that isn’t physically inside of the viewport. In this example, I am using jQuery, but feel free to use vanilla Javascript if you’re that […]

Our favourite way to structure AngularJS project

Published: Monday, January 26th, 2015 by James Martin

I touched on this in my previous blog post, but I thought it might be worth while explaining a few of the common ways to structure AngularJS applications, and the explain why we like the one we do. Simple If you’re coming from, say, a PHP background, you may decide to organise your files by […]

What’s awesome about cg-angular

Published: Friday, January 23rd, 2015 by James Martin

For our most recent AngularJS project, we’re using Yo to generate the files. This is really common practice for Angular apps, and Yo is a fantastic tool for helping to keep your code organised. We tried a few generators before we settled on cg-angular. The standard angulat-generator was alright, but it doesn’t support ui-router, which […]

Starting off with NgDocs

Published: Monday, January 5th, 2015 by James Martin

Documenting code is important – if you’re working in a team, it allows colleagues who perhaps weren’t involved in the original development to see what goes where, and even if you’re lone wolf-ing it, it always helps to have a reminder of what a function does. There are plenty of standards for commenting code – […]