generate ts file in service.ts code example
Example 1: angular new service
ng g s serviceName
Example 2: angular import service
import { <service name>Service } from '../<service path>';
ng g s serviceName
import { <service name>Service } from '../<service path>';