-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better iteration plugin #4
Comments
The current plugin is really only useful when the item themselves aren't views since changes to the values don't re-render the DOM. We need something that can handle an array of views specifically and watches the array for changes. It would probably be a different plugin. |
A possibly related bug: Failed to load resource: the server responded with a status of 404 (Not Found) |
@uipoet It's a normal behaviour, when your browser process Better explanation : https://docs.angularjs.org/api/ng/directive/ngSrc |
@wryk Thank you for the prompt and helpful solution! |
Yeah you could make a directive that gets around it easily: View.directive('data-src', function(value, el){
el.src = value;
}); Might be worth me just including this in the library since it's tiny. |
Not a bad idea to bake it in. In my case, I've already made a component for photographs that now does this. I think the minimum to do would be update the README.md for the each plugin with this as the example. The current example led me to believe there was a bug. |
The current
each
plugin was hacked together quickly. It's pretty gross.The text was updated successfully, but these errors were encountered: