I wish to load a image via ajax i.e get contents of image via ajax and show this as a image. I Know how to do the later part but
- how do i get the ajax data/blob into a variable
- how can i make a ajax call in a directive
I want the actual content of image not just src/url. I want to do this to overcome the CSP restriction of chrome apps
clickevent listener to the element (which is the button), and trigger the ajax call function using angular's$httpservice