ngx-responsive icon indicating copy to clipboard operation
ngx-responsive copied to clipboard

Feature request: Allow conditions as part of *ngIf

Open hassanasad opened this issue 8 years ago • 3 comments

This library gives really good helpers to use on their own such as:

<p *hideItBootstrap="['lg','sm']">I'll hide you only in lg and sm screen sizes.</p>'

However, its currently not possible to add them as part of a condition using *ngIf.

For instance i cannot do this:

<p *ngIf="type == 'category' && hideItBootstrap['lg', 'sm'] ">I'll hide you only in lg and sm screen sizes when type is category.</p>'

Any feature to be able to add ng2-responsive logic with structural directives will add a whole another dimension to this library.

hassanasad avatar May 05 '17 13:05 hassanasad

Yes, thanks @hassanasad. Let me see how we can do this. ; )

ManuCutillas avatar May 06 '17 16:05 ManuCutillas

@ManuCutillas any news on this feature?

RaphyLi avatar Aug 04 '17 13:08 RaphyLi

attempt stackblitz sample

elvispdosreis avatar Sep 16 '20 14:09 elvispdosreis