Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Why UI is not updaded ( reactive ) with the new value? #686

Open
@biapar

Description

@biapar

I create a local variable and input data from a textfield.
The value is stored into the variable ( if I click on the button to show snackbar, I see the value in the message ), but the UI is not updated.

Code:

               <b-field label="Name">
                 <b-input id="nome" v-model="message" placeholder="add your name"></b-input>
               </b-field>
               {{ this.message }} 
               <button class="button is-primary" @click="snackbar">
                  Launch snackbar (default)
               </button>

Declaration:

<script>
   import SystemInformation from './LandingPage/SystemInformation'
 
   export default {
     name: 'landing-page',
     components: { SystemInformation },
     data: {
       message: ''
     },
     methods: {
       open (link) {
         this.$electron.shell.openExternal(link)
       },
       snackbar () {
         this.$snackbar.open('Default, positioned bottom-right with a green OK button ' + this.message)
       }
     }
   }
</script>

Route Name:
landing-page
Vue.js:
2.5.17
Electron:
2.0.8
Node:
8.9.3
Platform:
win32

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions