Answer the question
In order to leave comments, you need to log in
Is there an alternative for Foundation interchange in AngularJS?
The task is to show different pictures, depending on the resolution of the window in the browser.
Are there any "best practices" if using AngularJS?
Foundation has a great interchange feature for this. But I would like not to become attached to the Foundation.
As options, I considered:
1) Foundation Angular
pineconellc.github.io/angular-foundation/#/interchange
2) Directive for AngularJS
https://github.com/tinacious/angular-picturefill
Tips?
Answer the question
In order to leave comments, you need to log in
There is a srcset attribute and a picture element. For those who do not support this kindness (and this is almost everyone now) - there is a picturefill. angular-picturefill only solves this problem for SPA (turns on the polyfill when the element appears), it still has the same picturefill inside
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question