saurabhdaware/vue-extra

Cant directly change value of navbar after initialized

Aperta

#2 aperta il 19 mag 2019

 (0 commenti) (0 reazioni) (0 assegnatari)Vue (0 fork)github user discovery
buggood first issuehelp wanted

Metriche repository

Star
 (1 stella)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

So when we first initialize navbar object with values and render the navbar we cant just do navbar.color = newColor later to change color. Currently the workaround for this is to do

this.navbar = {...this.navbar,color:newColor}

which seems super hacky. If someone can come up with something by which user can simply do navbar.color = newColor that would be great help. Thanks!

Guida contributor