services angular 10 step by step code example Example 1: services in angular ng g service service_name Example 2: services in angular ng generate service Time