Whoops, looks like because I pushed a new build up to master on Github. As it turns out, no changes were needed to the
directive.
The solution lives in the CSS, changing within the pseudo-element
display: none to
display:block. The CSS on
Github is minified, so here's the SASS/Compass of it:
%responsive-trigger {
&:after {
content: "phone";
display: block;
position: absolute;
top: 0;
left: -1000px;
@include at-breakpoint($break-to-medium) {
content: "tablet";
}
@include at-breakpoint($break-to-medium-large) {
content: "small-desktop"
}
@include at-breakpoint($break-to-large) {
content: "large-desktop"
}
}
}
By absolutely placing the content, it removes it from the layout flow and off-screen, yet is still available to Angular so she can add the appropriate class depending on window size for the bg iamge.
What's going on here was inspired by this
author, a responsive image solution translated into Angular.