AngularJS connection with MongoDB
<p>I have made one simple HTML file in angular. I want to connect my form to MongoDB.</p>

<p>I have attached my "html file" and "JS File".</p>

<p><strong>HTML FIle</strong></p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var app = angular.module('example',[]);

app.controller('TestController', function(){

 $scope.user.name= "Hello";
 $scope.user.mail = "test@gmail.com";
});</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
&lt;/!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
 &lt;title&gt;TEST Page&lt;/title&gt;

&lt;!-- begin snippet: js hide: false console: true babel: false --&gt;</code></pre>
</div>
</div>
</p>

<pre><code>&lt;/head&gt;
&lt;body ng-app="example" ng-controller="TestController"&gt;
&lt;table&gt;
    &lt;tr&gt;
        &lt;td&gt;Name:&lt;/td&gt;
        &lt;td&gt;&lt;input type="text" ng-model="user.name"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;Email:&lt;/td&gt;
        &lt;td&gt;&lt;input type="text" ng-model="user.mail"&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td colspan="2"&gt;&lt;button ng-click="getData()"&gt;&lt;/button&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>



<p>Please help me......</p>