How can i reduce the items number for mobile devices?

Solved!
Posted in Plugins by Victoria Morales Thu Sep 29 2016 09:47:03 GMT+0000 (UTC)·5·Viewed 275 times

Hi Jonny, how can we reduce the items number in our Facebook News Feed for mobile devices?
Jonathan Hornung
Sep 29, 2016

Hello Victoria,

it's very easy. I've made an example on plnkr for you: http://plnkr.co/edit/z7PFJB?p=preview

You should create a controller and add a new scope variable (plnkr: app.js). Now you can change the mobile-value of the variable very easy in the javascript part.
Then you should use this variable in the aping call (plnkr: index.html)

If you have more questions or something to this topic, you can ask here or just join the gitter channel for instant support: https://gitter.im/JohnnyTheTank/apiNG

Have a nice day,
Jonathan


Jonathan Hornung marked this as solved
Jonathan Hornung
Sep 29, 2016

btw: don't forget to use the controller in your app ;)

Victoria Morales
Sep 29, 2016

Thanks, is working!

Jonathan Hornung
Oct 5, 2016

Victoria, could you tell me the production url of this project? So I could add this page to the live-references section on https://aping.readme.io/docs/demos

Victoria Morales
Oct 5, 2016

Hi Jonny is not live jet, i'll tell you when it is.

Markdown is allowed