Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Added callback function attribute to call outside of the directive to return image data #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MikhailRoot
Copy link

Outer callback specified to return image data right after capturing to avoid explicit watcher on model in controllers where used this directive.
In my case it's done to get image data and allow to store them in array of captured images outside the directive.
//example callback in controller implementation
vm.images=[];
vm.recievePhoto=function(photo){
vm.images.push(photo);
}
also updated to run with angular 1.5 because in previous version i got error, can't load module.

Outer callback specified to return image data right after capturing to avoid explicit watcher on model in controllers where used this directive.
In my case it's done to get image data and allow to store them in array of captured images outside the directive.

also updated to run with angular 1.5 because in previous version i got error, can't load module.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant