I am printing a value in a view by {{ myvalue }}
.
I am assigning that value from the controller as
$scope.myvalue = "123";
I want to send this value myvalue
to ajax call.. So i want to assign this angularjs value to jquery value.
How can i assign this angularjs value to the jquery value ?
I tried like this
<script>
var newvalue = {{myvalue}};
</script>
But i am getting SyntaxError: Unexpected token {
How can i do this ?