I'm little confused with onclick function , with angularjs...
in my controller, i put this :
$('#mapReload').click(function () {
alert('lol');
});
nothing work... jquery is correctly added, where i'm wrong ?
In your HTML use ng-click for button click:
<button ng-click="reloadMap()">Map Reload</button>
And in your angularJS controller, write click handler:
$scope.reloadMap = function() {
alert('lol');
};
No wrap - in <body> and it will place js code just before </body> and that also will work.
ngClick?