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!

贡献者指南