Agree with flowery's post. People remember and judge exit behaviour, and so you need to be super polite, efficient and proactive about hand overs etc.
I suspect you had a horrible time before, but that's not usual. I'd definitely take care that your behaviour doesn't come over as aggressive or defensive, as it will if you expect this employer to react the same as the last one.
It's almost a self fulfilling prophesy, so please take heart from this - you are actually in a positive to set the tone for these last few interactions.
For example, if you set the tone as professional and good natured, they will respond to that, and it's hard to respond with aggression or ill grace in the face of determined politeness!
On the other hand, if you set the tone as combative and unpleasant, they will respond to that as well.
It's a peculiar time when you resign, especially if there's a long notice period. Just remember that you are in a position of power here - you don't need anything from them, and the dynamic of 'employed person wanting to keep their job' has shifted.
Just a thought: I wonder if your last boss reacted nastily because of that power shift. Feeling like you've not got control over someone can really wind a nasty person up. It says a lot about them, not you... and equally, not much about your current employers likely behaviour either!
So really, the only thing you would like from them is the possibility of a reference in the future, and that will happen by following the 'determined professionalism' route in leaving.
Good luck!