I am not sure whether I can do like this or there is a better way. I need someone to guide me.
I created two template using directive (both directives in the same page). Let say
- directiveVideo for display videos
- directivePhoto for display photos
Then I have a controller. this controller requests two different data, videos and photos. My question is, how can I pass the video data to display in directiveVideo and photo data to directivePhoto