question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Why limit data structure for amp-list?

See original GitHub issue

Why limit data structure for amp-list? why every response should start with:

{
"items": []
}

i’m consuming 3d party service and the response from this service is

{
"top": [],
"middle": [],
"bottom": []
}

if i cannot use amp-list, it’s possible to use amp-state + amp-mustache + amp-carousel? or if i cannot use amp-list, it’s possible to use amp-state + amp-mustache + amp-list?

i don’t have acess to create an endpoint in the server and parse the data structure

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mauricionrcommented, Nov 4, 2017

Thanks @choumx !!

0reactions
dreamofabearcommented, Nov 7, 2017

Have you tried the items attribute I mentioned above?

<amp-list items="share_count" single-item>
Read more comments on GitHub >

github_iconTop Results From Across the Web

AMP bind limit exceed - Stack Overflow
I have developed an AMP project where I have created an amp-list pulling data from endpoint. Inside the amp-list it has 24 tiles...
Read more >
What are the limitations of an array in data structure? - Quora
1 The size of an array is limited. It must be redefined to resize an array. 2. The order of the element in...
Read more >
The value of amp-list initialization from state
A common approach to implement this in AMP is using an amp-list component where the “[src]” attribute is a URL constructed from AMP...
Read more >
Support additional quota for inline CSS #17269 - GitHub
Building on #11881, this issue is to discuss increasing the limit on CSS ... So, with inline styles and some changes to amp-list...
Read more >
Constraints on Relational database model - GeeksforGeeks
Constraints that are applied in the data model is called Implicit ... a data type to a column we limit the values that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found