No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to inject JSON-LD in a SPA?

    Help
    3
    4
    554
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      abeltodev last edited by

      How to inject a JSON into a script? Like this:

      <script type='application/ld+json'>
        {"@context":"http:\/\/schema.org\/", ...}
      </script>
      

      I can’t find a proper solution …

      Thanks

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        https://quasar-framework.org/components/meta-plugin.html

        Check out the usage example.

        Scott

        1 Reply Last reply Reply Quote 1
        • A
          abeltodev last edited by

          ORLY? … Thanks!

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            If your script content is static, then you can add it directly to your src/index.template.html. Otherwise, use Quasar Meta Plugin as indicated above.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post