[fix bug 1083736] Add emit with query on load.

This should fix bug [1083736](https://bugzilla.mozilla.org/show_bug.cgi?id=1083736).

I'm fairly new to angular so if this is bonkers in some way don't hesitate to comment.