https://www.aurorasolutions.io/blog/angularjs-service-types-with-examples/ - This article explains various types of services in angularjs such as Service, factory, provider, constant and value. Then I was clear with the difference between various services in angularjs. Then I read this article http://blog.xebia.com/differences-between-providers-in-angularjs/ which explains the difference between various types of providers in angularjs such as service, factory, provider, constant, value and decorators.
This is confusing for me.
What is the differnce between Providers and services, which have the same methods with same way of functioning?
When should I use types of service methods and provider methods?
What is the need of implementing the same methods in different ways?