Resolving AngularJS executing controller twice issue
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...
Using Google Maps in Angular JS
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.
Parsing html data from an array inside an AngularJS view
One of those is parsing HTML strings within views using ng-repeat.
Incrementing a loop inside an angularjs view
If you've been using AngularJS for some time you might find there are occasions where you want to display the incremented value of a loop counter inside a view instead of calculating/returning that from within the controller logic.
Doing this is incredibly easy...
Resolving POST requests in AngularJS
There you are using AngularJS for posting form data to a remote server and you come across the most perplexing bug: despite the data being captured properly it just isn't posted. You double check both your Angular script and server side script but can't find the source of the issue - the code is bug free and should work but it isn't.
What to do?
AngularJS errors with JSON parsing
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