saurabhdaware/vue-extra

Cant directly change value of navbar after initialized

オープン

#2 opened on 2019/05/19

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Vue (0 件のフォーク)github user discovery
buggood first issuehelp wanted

Repository metrics

Stars
 (1 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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!

コントリビューターガイド