I have an HTML with following buttons:
<button ng-click='showStats(player.data,0)'>Death Match</button>
<button ng-click='showStats(player.data,1)'>Champions Rumble</button>
<button ng-click='showStats(player.data,2)'>Full Profile</button>
As you might have guessed, when any of the buttons are clicked, then corresponding player stats are shown. This works fine without issues. Now, the system has an additional feature in that a player can set which part of his profile to show as default.
So when the user visits a player profile, suppose the player has set his profile show preference to 1 (Champions Rumble)
. In this case I want the button click on the middle button to be simulated (only when page is loaded first time) so that the corresponding profile part is shown. Then the visitor can click any of the buttons and that part of the profile will get shown,as it is being done now.
Can this be done? I have been trying for hours now.Any help is greatly appreciated!