angular g resolver code example Example 1: ng g ng g directive <name> [options] Example 2: ng g component ng g class <name> [options]