raventools/eventsd — pull request #30 by kcrawley (2014-09-19 00:21:26+00:00)
Title: removed controller declarations from html templates

The controllers were being called twice. This was causing the init() methods in each of those controllers to fire twice, as a result, triggering the api routes twice. I discovered that you should be declaring your controllers in either the html templates or the router, not both. The router method seems cleaner.

http://stackoverflow.com/questions/15535336/combating-angularjs-executing-controller-twice