How to integrate in this mean-stack
Hi,
I am trying to integrate the cloudinary module to my app but I don't know how to do.
More details here: http://stackoverflow.com/questions/22948029/how-to-call-cloudinary-module-from-my-controller
The thing is, I don't understand how service and controllers works together.
Can you explain that?
How can I call something like 'cloudinary.uploader.image_upload_tag('image_id', { callback: cloudinary_cors });' in my controller?? (I get an error: 'cloudinary is not defined'). Does it have to be declare in my service? How?
Please help.
-
Please note that
image_upload_tag
should be done on the server side (node) and not in your Angular client-side code. Another option is to upload from Angular and call the server-side to generate a signature for the upload.Also note that we have a contributed Angular code which is not maintained by Cloudinary ( https://github.com/jbcpollak/cloudinary_angular), but it seems to work well for some of our customers. We encourage community contributions to Cloudinary's client libraries and promote them. In addition, it is in our road-map to officially support Angular, either by maintaining the current module or creating an updated one, but there's no ETA yet.
0
Post is closed for comments.
Comments
1 comment