Blog

AngularJS articles

Resolving AngularJS executing controller twice issue

Posted: Sunday 28th June, 2015 - 6:35pm
Author: James Griffiths

If you've been developing with AngularJS for some time then you may have unwittingly come across the following issue: your controller is executed twice.

Seems like one of those coding problems that shouldn't exist but fixing this is, thankfully, quite simple...

Read more...

Using Google Maps in Angular JS

Posted: Tuesday 10th March, 2015 - 8:27pm
Author: James Griffiths

Angular JS, once you switch from a jQuery mindset, makes building out web apps relatively quick and thanks to the growing number of available plug-ins you can be sure to find a solution to fit your development needs.

One such need might involve implementing Google Maps which is what we are going to look at through this tutorial.

Read more...

Scrolling to a page anchor in Ionic Framework

Posted: Tuesday 17th February, 2015 - 8:03pm
Author: James Griffiths

If you've been working with the Ionic Framework you'll be familiar with setting up AngularJS routes for your controllers and view templates which are then triggered with hyperlinks used within your App. The combination of Ionic and AngularJS makes this easy to implement but when it comes to scrolling to a particular anchor inside a view template things get a little trickier.

Read more...

Parsing html data from an array inside an AngularJS view

Posted: Monday 16th February, 2015 - 7:53pm
Author: James Griffiths

There's no denying that AngularJS is a fantastic framework to develop with but if you're coming from a jQuery/traditional JavaScript background there are certain aspects of Angular based development you might initially struggle with.

One of those is parsing HTML strings within views using ng-repeat.

Read more...

AngularJS errors with JSON parsing

Posted: Sunday 16th March, 2014 - 5:17pm
Author: James Griffiths

If you've been developing with MVVM (Model View - View Model) framework AngularJS chances are you'll have encountered errors with parsing JSON from an AJAX call. Like any good web developer when you inspect the browser console for more information on the nature of the error you'll probably get something along these lines:

Error: JSON Parse error: unterminated string

As far as browsers reporting back JavaScript errors this is probably one of the most helpful as we know exactly what the source of the problem is and where to look (unlike some of the more cryptic errors messages that can sometimes be returned). 

Read more...
Top