Any reason we use `$parent here? I thought that ng-repeat's scope inherits from $parent, so layerSelected and layerHovered should be available through inheritance. Or does this break the binding?