Suppose I have: ConcreteClass extends BaseClass {}
When trying to use @Query (BaseClass) Angular did not find anything. Only when I request ConcreteClass do I get results; any idea?
Subclassing in @ViewChild(SubClass) not supported.
@ViewChild(SubClass)
See https://github.com/angular/angular/issues/1828
Workaround is explained in https://github.com/angular/angular/issues/8580#issuecomment-218525425
@Component({ selector: 'my-fancy-item', providers: [{provide: MyItem, useExisting: MyFancyItem}] }) class MyFancyItem extends MyItem {}
which makes a request for MyItem , searches for MyItem and MyFancyItem . I have not tried, though.
MyItem
MyFancyItem
Source: https://habr.com/ru/post/1271456/More articles:error: libcurl> = 7.22.0 library and headers are required with https support (for R 3.4.1) - linuxGet all positive integral solutions for a linear equation - pythonHow to access the host component from a directive? - angularN degree separation problm interview - mathThe relationship between the lightbox component and its child component? - angularFast matrix subset in R - performancetrying to write test cases for each line - javascriptInterpretation of applications R Shiny App - rHow to use matplotlib.pyplot in docker container? - pythondifferent results between phpinfo.php and php-v - phpinfoAll Articles