angular crate service file cmd code example Example 1: angular new service ng g s serviceName Example 2: ng g ng g directive <name> [options]