I have a link like
<a class="nav-link" data-toggle="modal" data-target="#testModal" @click="platform.os.family == 'iOS' ? showSettingiOS() : showSetting()">Test</a>
I want to add if statement based on device & change function name. I have tried as
@click="platform.os.family == 'iOS' ? showSettingiOS() : showSetting()"
and
@click="platform.os.family == 'iOS' ? 'showSettingiOS()' : 'showSetting()'"
nothing worked. My platform object not usable inside function this is why I am trying using at href. What I am doing wrong
platformmeant to be?platformproperty for use in the template?platformobject not usable inside function"?platformwas loaded in parent component but not working in iOS only