More amp-bind examples in separate folder#7127
More amp-bind examples in separate folder#7127dreamofabear merged 8 commits intoampproject:masterfrom
Conversation
|
Just FYI @sebastianbenz @kul3r4 |
|
Thanks, is it too early to start building a sample? |
|
@kul3r4 I think it would be perfect timing.
(2) should be fine for building demos. Feedback with respect to (3) would be really helpful. Do you feel you have everything you need to start building or would a quick meeting be helpful to get you up to speed on our thinking? |
cramforce
left a comment
There was a problem hiding this comment.
This is awesome, where this you get the shirt images?
|
Oops, good call. Replaced with public domain (Creative Commons CC0) substitute from pixabay.com. |
|
From a separate conversation, it seems @choumx is already planning to add a sample to ampbyexample, we can work together on that. |
|
@kul3r4 getting usage of this and feedback would be tremendously helpful. @choumx being the builder of this, might be the quickest person to get something done, but not the best person to get feedback. What I'd really, really want to see is a complete product detail module that has
|
|
@cramforce @kul3r4 we can update the existing product sample which already has all the UI components in place. |
| } | ||
| </style> | ||
|
|
||
| <amp-state id="shirts"> |
There was a problem hiding this comment.
i dont think this is allowed in head. this will actually force <head> to auto close
examples/bind/basic.amp.html
Outdated
| } | ||
| </style> | ||
|
|
||
| <amp-state id="myState"> |
There was a problem hiding this comment.
same issue here. <head> will auto close
examples/bind/basic.amp.html
Outdated
| </head> | ||
|
|
||
| <body> | ||
| <amp-state id="myState"> |
There was a problem hiding this comment.
Good call from Erwin to put this out of head. Lets actually switch to always having it at the end in our example. That can actually make quite a difference in terms of the browser getting to the more important bytes quicker.
0632242 to
abc6326
Compare
abc6326 to
7bb020b
Compare
7bb020b to
68ed540
Compare
|
@cramforce Any other comments? The sophisticated e-commerce example you suggest is tracked in ampproject/amp-by-example#557. |
* move bind examples to bind/ folder * add sandbox example * add ecommerce example * update titles * replace shirt images * move amp-state to <body> * move <amp-state> to bottom of body * fix amp-bind validator html and output
* move bind examples to bind/ folder * add sandbox example * add ecommerce example * update titles * replace shirt images * move amp-state to <body> * move <amp-state> to bottom of body * fix amp-bind validator html and output
* move bind examples to bind/ folder * add sandbox example * add ecommerce example * update titles * replace shirt images * move amp-state to <body> * move <amp-state> to bottom of body * fix amp-bind validator html and output
Partial for #6199.
basic.amp.htmlcarousels.amp.htmlecommerce.amp.htmlxhr.amp.htmlsandbox.amp.htmlperformance.amp.html/to @erwinmombay /cc @cramforce @ericlindley-g