Problem in Select


#1

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.


#2

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


#3

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.