You can not pass attributes from a page to another page or a microflow, you can only pass objects. You could pass you persistable object to step 2. You can also create a non persistable object and pass it to step2 (use a microflow to navigate to step 2).
How you solve this always depends on what you need to achieve.