Angular - Advanced Patterns
Find the mistake in this Angular service using the Factory pattern:
export function createService() { return new Service(); }
@Injectable({ providedIn: 'root', useFactory: createService })
export class Service {}