Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am trying to create some sort a sitemap for my app. Since I can't use a sitemap generator.

I want to be able to display something like this:

  <url>
    <loc>
    http://www.fff.com
    </loc>
  </url>
  <url>
    <loc>
    http://www.fff.com/blog/23442
    </loc>
  </url>

That way I can copy and past in a xml file. I tried something like this:

<code ngNonBindable>
  <url>
    <loc>
      http://www.fff.com/blog/23442
    </loc>
  </url>
</code>

This will only display: http://www.fff.com/blog/23442.

Anyway I can achieve this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
148 views
Welcome To Ask or Share your Answers For Others

1 Answer

<pre>
  {{content}}
</pre>
  content = `<url>
    <loc>
      http://www.fff.com/blog/23442
    </loc>
  </url>`;

Plunker example


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...