Hi Suresh,
I don't think this is a venue you should follow. This will lead you into a road full of unexpected surprises. I would prefer not to maintain a project that holds stuff like this.
However, what you ask is possible, and I will
show you how. Consider this as an academic exercise, not as something you should do in production!
If you need something like this, every 'template' should receive it's own private an new Scope.
Does this explain it a bit to you?
Regards
Sander