I use a piece of code in angularjs (coded by an ex-member of the company). I know nothing about angularjs, but I would like to access a javascript variable or a function, so that I can use it within the angular module. Below, is an example of what my problem is...
Angularjs part:
(function(){
var app = angular.module('project', [],
function($locationProvider){$locationProvider.html5Mode(true);}
);
... other angularjs functions ...
})();
Javascript part:
var price = 10000;
function getPrice(){
return price;
}
I think this question seems very simple to answer, but I have been stuck for hours and I feel kind of "desperate" not to be able to resolve it. Thanks in advance for your suggestions