Search code examples
angularangular-ui-routerxml-sitemap

How to create dynamic URLs in sitemap.xml using angular 2?


How to create dynamic URLs in sitemap.xml using angular 2?. I have tried with npm sitemap package. But i cannot create sitemap.xml. can anyone tell how to to create dynmic urls in angular 2?


Solution

  • The better solution is to generate your sitemap dynamically with a nodejs worker, created by yourself. Nodejs can write a file in system and is pretty simple to generate file.