johnpapa / vscode-angular-snippets

Angular Snippets for VS Code
MIT License
575 stars 163 forks source link

a-service only creates the @Injectable() decorator without service class #102

Closed paulheising closed 4 years ago

paulheising commented 4 years ago

OS and Version?

Kubuntu, pretty sure this doesn't matter

Versions

8.2.0 (2019-11-18)

Repro steps

just use the a-service snippet

expected result

import { Injectable } from '@angular/core';

@Injectable({ providedIn: 'root' })
export class NameService {
  constructor() {}
}

actual result

@Injectable({ providedIn: 'root' })

Mention any other details that might be useful.

I think it came in straight with version 8.2.0, because the changelog says "Refactored a-service to create a service with injectable provided in root"

Which is good.

But I think it should still create a service, not only an @Injectable({providedIn: 'root'}) :wink: