passing components up the tree
hi! I have a title bar in my layout, and I want to set this from within each page. Currently i'm using page meta for this, but it only works for static things from what I can tell(?) and i want to be able to have dynamic stuff in the title bar, and maybe a way of showing icons in it. is there a way to do this?
4 Replies
i think you can defineModels on children then having a ref on parent -> you can change the title by changing on the (defineModels on children). that's how i would do it
some smart guy once told me to use a store for such things...
oops sorry for not seeing this yesterday, but thanks so much for the suggestions!! didn't know about any of this