File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,23 @@ export class AppComponent {
6767 image: ResponsiveImage = {
6868 placeholder: ' http://via.placeholder.com/35x15?text=placeholder' ,
6969 fallback: ' http://via.placeholder.com/350x150?text=fallback' ,
70- xs: {
71- ' @1x' : ' http://via.placeholder.com/150x350?text=xs+1x' ,
72- ' @2x' : ' http://via.placeholder.com/300x700?text=xs+2x'
73- },
74- md: {
75- ' @1x' : ' http://via.placeholder.com/350x250?text=md+1x' ,
76- ' @2x' : ' http://via.placeholder.com/700x500?text=md+2x'
77- },
78- lg: {
79- ' @1x' : ' http://via.placeholder.com/700x400?text=lg+1x' ,
80- ' @2x' : ' http://via.placeholder.com/1400x800?text=lg+2x'
81- }
70+ images: [
71+ {
72+ size: ' xs' ,
73+ x1: ' http://via.placeholder.com/150x350?text=xs+1x' ,
74+ x2: ' http://via.placeholder.com/300x700?text=xs+2x'
75+ },
76+ {
77+ size: ' md' ,
78+ x1: ' http://via.placeholder.com/350x250?text=md+1x' ,
79+ x2: ' http://via.placeholder.com/700x500?text=md+2x'
80+ },
81+ {
82+ size: ' lg' ,
83+ x1: ' http://via.placeholder.com/700x400?text=lg+1x' ,
84+ x2: ' http://via.placeholder.com/1400x800?text=lg+2x'
85+ }
86+ ]
8287 };
8388
8489 public onPlaceholderLoad(imageLoadedEvent : ImageLoadedEvent ) {
You can’t perform that action at this time.
0 commit comments