New to Angular and currently navigating my way through an existing codebase.
There is a particular element that already exists in the root document (index.html) before Angular library is loaded. Due to this, the ng-click directive does not get registered.
Is there a simple method to provide Angular with a reference to this specific element so it can be recognized as its own?
Below is some sample code showcasing the issue (missing parts for demonstration purposes only):
<html>
<body ng-app="allMyCookiesApp">
<a ng-click="giveGeuisACookie()">GIMME</a>
<script src="angular.js"></script>
</body>
</html>
I am eager to receive a cookie when I click on GIMME.