Hello, I'm trying to add improve a structural directive with a new argument and I have some strange behavior when this argument is an component reference.
<div responsive-window="saleDocumentItemListContainer" #parentContainer="container"> {{ parentContainer.getWidth() | json}}-- <!-- getWidth is a function of responsive-window so this works fine --> <!--the two following lines are working great, current directive behaviour --> <p *responsive="{ sizes:{ window: 'saleDocumentItemListContainer', max: bp.sm} }">c{{ { sizes:{ window: 'saleDocumentItemListContainer', max: bp.sm} } | json }}</p> <p *responsive="{ sizes:{ window: 'saleDocumentItemListContainer', min: bp.sm} }">d{{ { sizes:{ window: 'saleDocumentItemListContainer', min: bp.sm} } | json }}</p> <!--the two following lines seems to be completely ignored, I don't even get into the responsive directive ngChange --> <p *responsive="{ sizes:{ container: parentContainer, window: 'saleDocumentItemListContainer', max: bp.sm} }">a{{ { sizes:{ window: 'saleDocumentItemListContainer', max: bp.sm} } | json }}</p> <p *responsive="{ sizes:{ container: parentContainer, window: 'saleDocumentItemListContainer', min: bp.sm} }">b{{ { sizes:{ window: 'saleDocumentItemListContainer', min: bp.sm} } | json }}</p> </div> The only difference is the additional container parameter with the parentContainer reference. I have no error, just nothing at all. I suspect this might be related to some specificity of structural directives but I don't know what. Is there any way to get around this ? Thanks -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.