Infosys Interview Question

Scenarion based question where asked Angular core concepts service?how it is singleton A small coding where given and we have say the result