Click outside without the need for an id
Thanks to @CosticaPuntaru for the suggestion to remove the need for the element the directive is attached to require to have an id. Directive can now be added to an element and assumed it will be excluded whether it has an id or not.