After attempting the solution provided in this post for my Angular app, I ran into some issues. To try and resolve the problem, I decided to introduce a custom tag (<mytag>
) into the head section, which allowed me to get the directive working by substituting "head" with "mytag."
However, this workaround is not exactly what I had in mind since it ends up adding <mytag>
to the body instead of the desired <head>
section.
If anyone has any insights on how to make it function properly with the head tag, please share your expertise.