ngx-responsive
ngx-responsive copied to clipboard
FR: Apply classes based on breakpoint size
similar to the way you can do [class.hidden]="amIHidden" with core ng2
Something like this would be stellar :-) [class.iamsmall]="{max:768}"
(or whatever syntax is appropriate.
You should considering CSS option :
@mixin smallViewport {
@media (max-width: #{$smallViewport - 1px}) {
@content;
}
}
.wrapper {
display: block;
@include smallViewport {
display: none;
}
}
Hello,
I would like to do the same but based on a responsive-window parent container size not the whole page. It would be great to have such a feature for class or even for attributes.
Thanks
Is there any potential update on the package related to this enhancement request ?