I had started work on angularjs.Currently i am stuck on some point like how to communicate with directive to controller/service/factory.
My use case was like, I have custom directive with its 5 to 7 attributes(Properties). On my page i want to load directives with reference to JSON data file. So my pages contains different directive. If users modify directive properties and user save file then that file will be generated with updated json data and AJAX call can save that file.
For above case please suggest me approach.
How can i get directive properties in factory/service ?
if i modify my directive property it will also change in factory/servie for very next json data for file.