Maybe a comment that this is limited to layers search only. It took me a while to find out :)

Also, I think we could work with ng-show="hasLayerResults" in the layers template. This would get rid of the if clause below and the compile above would take care of the rest.