Encountered an issue while reusing a directive where some tags had a second directive with a new scope created using new or {}, while others did not have one. Attempting to create a new scope when one already existed resulted in an error being thrown by Angular.
Curious if there is a way to optionally create a scope.
Experimented with creating a new scope and replacing the current one in both link functions and controller function using code like:
scope = scope.$new();
Unfortunately, this approach was unsuccessful when attempting to use the scope in the template.