Stateful ionic modal

Hello. am a newbie to ionic. i was hoping if i could get some help. i want to achieve a stateful modal with ionic. Now what i want to achieve is to click the login or signup button in the modal and it loads another state in the modal. i will be greatful with some help and advice.