I’m new to Angular. I have this problem when trying to implement the href value of the Sitemap tag dynamically. This value contains the url of the xml which is stored in the database. The problem arises when transferring the data from the object to the view in angular resulting in the problem NG0904 unsafe value used in a resource URL context. I have implemented a DomSanitizer pipe but I can’t overcome the problem. I would like you to give me a hand with it.
Angular 16. Display data dynamically
Dev Cop is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.