Problem in Select

this is fancy-select:

http://codepen.io/mhartington/pen/CImqy2

I want to recover the value of single-select and multi-select in the controller:

console.log($scope.val.single);
console.log($scope.val.multiple);

But failed.

if i test in the directive, to recover the value, It is successful:

console.log(scope.value);

How the value recovery from the controller?

Thanks!

Note: Sorry, I am newbie and speak spanish.

Are you able to re-save your CodePen? It’s currently empty.

Hi, thanks for answering, but already solved.

The link was this enter link description here

the solution is to send an event from the directive to the controller and then make a callback to rescue the value.