I saw my mom using a disposable aluminium loaf pans to bake carrot cake. She did not grease the pan before pouring the batter in, is that right? Also, after she took the baked cakes out of the oven, she will bang the disposable loaf pans a few times on the table. Is this step necessary?
I have never baked a cake with greasing and flouring the tins, regardless of the type. I also have never heard of banging them on the table after cooking. It is common practice to bang them a few times before baking to help get rid of air bubbles. Be safe and grease and flour your tin! It would also help to put a piece of wax or parchment paper in the bottom (cut to the size of the pan).
Most likely what your mom was doing by banging the pan on the table was loosening the cake from the pan — not a great way to get a tender cake out so NO it is not necessary in fact not recommended Do as Sandra said grease and flour &/or line w/parchment paper If you want to comment on any post & can’t just start a new post referring to the one you are talking about