When extending a service that uses the @Autoregister decorator, the decorator overrides the constructor of the new service (that extends the original service), so new methods are erased from the new class.
Example:
@Autoregister
@Injectable
export class SomeService {
public someMethod() { return; }
}
@Autoregister
@Injectable
export class SomeNewService extends SomeService {
public newMethod() { return; }
}
In this case, the method newMethod can't be accessed in the service instance.
When extending a service that uses the @Autoregister decorator, the decorator overrides the constructor of the new service (that extends the original service), so new methods are erased from the new class.
Example:
In this case, the method
newMethod
can't be accessed in the service instance.