I have a streetName variable within an Angular scope.
<script type="text/javascript">
angular.module('addApp').controller('add', ['$scope',function($scope) {
$scope.streetName = "Bonita Ln";
}]);
</script>
Could someone please advise me on how to access the streetName in a JavaScript function defined within this controller's scope (add)?
<div ng-app="addApp" ng-controller="add">
StreetName: {{streetName}}
<script type="text/javascript">
// I need to access the value of streetName here...
</script>
</div>