saurabhdaware/vue-extra

Cant directly change value of navbar after initialized

開放

#2 建立於 2019年5月19日

 (0 則留言) (0 個反應) (0 位負責人)Vue (0 個分叉)github user discovery
buggood first issuehelp wanted

倉庫指標

星標
 (1 顆星)
PR 合併指標
 (30 天內沒有已合併 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!

貢獻者指南