How to interact between Angular and Java (in terms of passing variables back and forth)?
<p>I'm trying to develop a software tool where people can enter an ID and then that ID will be searched using a third party website in the background and the results of that search will be displayed in a different fashion on my software. However, my front-end is in AngularJS while the back-end code is all in Java. How do I get Angular to pass that data to a function or similar? My coworker said something about passing the value to a controller and having that interact with the java program, but I didn't really understand what he was trying to say. </p>

<p>But for example, to make my question more clear:</p>

<p>Say I have this HTML/Angular code:</p>

<pre><code>&lt;div&gt;
    Name:
    &lt;br /&gt;
    &lt;input type="text" ng-model="name"&gt; {{ name }} &lt;/input&gt;
    &lt;br /&gt;
&lt;/div&gt;
&lt;script src="angular.min.js"&gt;&lt;/script&gt;
</code></pre>

<p>and then I have this Java code:</p>

<pre><code>public int letterCount(String name){
    return name.length();
}
</code></pre>

<p>How do I pass the variable "name" from the first file to the java method "letterCount" ??</p>