Answer the question
In order to leave comments, you need to log in
How to use custom class in Angular service?
There is a service:
@Injectable({ providedIn: "root" })
export class LayersSemantic {
}
export class A {
do() {}
}
@Injectable({ providedIn: "root" })
export class LayersSemantic {
private a: A;
constructor0 {
this.a = new A();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question