Skip to content
This repository was 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
MikhailRoot wants to merge 3 commits into
bcabanes:masterfrom
MikhailRoot:master
Open

Added callback function attribute to call outside of the directive to return image data#13
MikhailRoot wants to merge 3 commits into
bcabanes:masterfrom
MikhailRoot:master

Conversation

@MikhailRoot

Copy link
Copy Markdown

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.

1 participant