i'm trying to send diferent datas to my other component.
Basically, when my variable firstvalue is not null, i want to send firstvalue.
And it's working, but now i want to send secondvalue if the secondvalue is not null.
Basically right now i have this
<props-form
v-if="firstvalue !== null"
:point="firstvalue"
:eventBus="eventBus"
@cancel="() => cancelFct()"
></props-form>
And i would like to do something like this :
<props-form
v-if="firstvalue !== null"
:point="firstvalue"
v-if="secondvalue !== null"
:point="secondvalue"
:eventBus="eventBus"
@cancel="() => cancelFct()"
></props-form>
But it's not working because i can't "duplicate" props and because i can't put two v-if like this.
How can i do something like this ?