I have a list of values in $scope from a controller. Need to access those in a non-angular javascript function.
I have a route like:
.when("/display", {
templateUrl: "html/display.html",
controller: "DisplayController"
})
In display.html, I have the following javascript function. I have number of them, in fact
<script>
var g = new JustGage({
id: "gauge",
value: 67,
min: 0,
max: 100,
title: "Visitors"
});
</script>
In above function, value need to be passed from a list variable in $scope from angular DisplayController.
How do I do it? How do I specify the values which are in $scope.list?
I have seen other questions in similar lines.. Proposed solution are like doing something like
angular.element(myDomElement).scope()
I am using ng-view and not actually specifying any controller in any of the elements. In this case, is it ng-view element?
Any help is appreciated.