Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

template parse error when using only responsive selectors. #59

@ThomasBurleson

Description

@ThomasBurleson

Developers currently must use the default API when one or more responsive APIs are defined.

Consider the following scenario where the default is fxShow and the responsive API defined is fxShow.xs:

<div fxShow [fxShow.xs]="menuOpen" class="banner">
  I should hide and show
</div>  

The above ^ works fine. When I do not, however, specify the default non-responsive selector fxShow:

<div [fxShow.xs]="menuOpen" class="banner">
  I should hide and show
</div>  

then a Template Parse error occurs:

Uncaught (in promise): Error: Template parse errors:
Can't bind to 'fxShow.xs' since it isn't a known property of 'div'. ("
    </button>
    
    <div [ERROR ->][fxShow.xs]="menuOpen" class="banner">
      I should hide and show
    </div>  
"): TestApp@5:9
Error: Template parse errors:
Can't bind to 'fxShow.xs' since it isn't a known property of 'div'. ("
    </button>

Here is the Plunkr Demo that shows this.

NOTE: this has also been reported in /angular/issues/13645

Metadata

Metadata

Labels

bughas prA PR has been created to address this issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions