create a service in angular cli code code example
Example: angular create a service
>>> ng generate service service_name
or
>>> ng generate service /folder-name/service-name
>>> ng generate service service_name
or
>>> ng generate service /folder-name/service-name