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

    changing data of the page from the layout

    Framework
    2
    3
    313
    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.
    • J
      jmg1340 last edited by

      I would like to know, if it’s possible, how to modify data on a page from the layout. For example, I’ve got an array of elements in a page data object and I would want remove this elements from a button in the layout. I’ve got it putting this button on the same page, but I wanted to work with a button in the layout.

      J 1 Reply Last reply Reply Quote 0
      • J
        jmg1340 @jmg1340 last edited by

        @jmg1340
        I’ve got it substituing the router-view (in the layout) by the content of the page template. Then, move the content of the page data object to the layout data object. And move the content of the page style tag to the layout style tag.

        Would it be right?

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

          Use Vuex.

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