ngMocks.input
Returns value of an input
of an element.
It avoids the issue of knowing the name of a component / directive the input belongs to.
ngMocks.input( debugElement, input, notFoundValue? )
or simply with selectors which are supported by ngMocks.find
.
ngMocks.input( cssSelector, input, notFoundValue? )
const inputValue = ngMocks.input(debugElement, 'param1');
const inputValue = ngMocks.input('app-component', 'param1');