When a JQuery retrieved value passed to a controller function via ng-click it is undefined
<button ng-click="getDefinition( $('#selection2').val());">Submit</button>
controller:
$scope.getCriteriaDefinition = function (data_dictionary_id) {
//data_dictionary_id is undefined
}
Any ideas? I thought the value contained within the ng-click attribute gets parsed and then run