A deep declaration of Factory in ionic 2

I couldn’t recognize the meaning, using and concept of Factory.
What does the Factory exactly mean?

Think of a factory in real life.

In ionic 2 / angular 2 or in modern programming factories are there to create instances of something or to generate code of something…

1 Like

Thank you @bengtler,
But, Is there any documentation about factory and things related to it?
Sometimes it can be very difficult to understand a simple concept for someone!