Created
May 28, 2018 08:14
-
-
Save realtomaszkula/c759c4a6357452552202571484a1d25e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Directive({ | |
selector: 'img[appProgressiveImage]', | |
providers: [{ | |
provide: Dimensions, | |
useExisting: forwardRef(() => ProgressiveImageDirective) | |
}] | |
}) | |
export class ProgressiveImageDirective implements OnInit, Dimensions {} | |
@Directive({ | |
selector: '[appProgressiveImageFallback]', | |
providers: [{ | |
provide: Dimensions, | |
useExisting: forwardRef(() => ProgressiveImageFallbackDirective) | |
}] | |
}) | |
export class ProgressiveImageFallbackDirective implements OnInit, Dimensions {} | |
@Directive({ | |
selector: '[appProgressiveImagePlaceholder]', | |
providers: [{ | |
provide: Dimensions, | |
useExisting: forwardRef(() => ProgressiveImagePlaceholderDirective) | |
}] | |
}) | |
export class ProgressiveImagePlaceholderDirective implements OnInit, Dimensions {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment