I am at the very beginning with my Angular training, and I implemented this form:
http://codepen.io/jgrecule/pen/WxgqqO
What it should do is very simple: it consumes a public JSONP Flickr stream in accordance with the Flicker specifications https://www.flickr.com/services/feeds/docs/photos_public/ and displays thumbnails of images
In the implemented form, there is a submit button, as well as a reset. My problems, I am trying to find solutions in order of importance:
- The first time you print tags, everything works, but when you try to send the request again by adding a new tag or user ID or anything that doesn't work anymore. I see this warning in the logs, but I do not know what causes it
WARNING: Tried to load angular more than once. - reset only works for thumbnails, but not for other controls on my page.
- I would like to find a way to show the error message when the user clicks on the button
search flicker, and the input fields for tags and user IDs are empty. I tried to implement a custom directive, but could not get it to work.
Thank you in advance for your details.
source
share