As a beginner in Angular and Mongo, I am exploring the possibility of using Angular js to retrieve data from a Mongo database and display it within a div on a single-page website that I am currently constructing. The specific data to be fetched will be determined by the option selected by the user in a dropdown menu on a form. There is a vast array of options available for Angular, so I would greatly appreciate guidance from someone with more experience in this area. Below are the essential portions of my code:
<body ng-app="">
<div id='ad'> </div><!-- to be populated with data from MongoDB -->
<select id='climateZone' ng-model="zone" >
<option value="z3">3</option>
<option value="z4">4</option>
<option value="z5">5</option>
<option value="z6">6</option>
<option value="z7">7</option>
<option value="z8">8</option>
<option value="z9">9</option>
<option value="z10">10</option>
</select>
<button id='Go'><h2>Go!</h2></button>
I envision a scenario where upon selecting an option and clicking the 'go' button, the 'ad' div will be filled with information specific to the chosen option retrieved from the database.
I trust that everything is clear from my explanation above, and any assistance provided will be highly valued!