Closed paulheising closed 4 years ago
Kubuntu, pretty sure this doesn't matter
8.2.0 (2019-11-18)
just use the a-service snippet
a-service
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class NameService { constructor() {} }
@Injectable({ providedIn: 'root' })
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:
@Injectable({providedIn: 'root'})
OS and Version?
Kubuntu, pretty sure this doesn't matter
Versions
8.2.0 (2019-11-18)
Repro steps
just use the
a-service
snippetexpected result
actual result
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: