title: angucomplete in a form
body: <p>Can I make angucomplete item in an html form? (in angular.js of course)<br>
  What do I need to put in <code>selectedobject</code>?</p>
  
  <p>Tried this code but it doesn't do what I need of course:  </p>
  
  <pre><code>   &lt;form class="form-horizontal" role="form" name="AddShareForm" novalidate ng-controller="AddArticleShareCtrl" ng-submit="AddShareForm.$valid &amp;&amp; submit()"&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="share-nick" class="col-xs-2 col-xl-2 control-label"&gt;User Nick&lt;/label&gt;
              &lt;div class="col-xs-10 col-xl-10"&gt;
                  &lt;angucomplete id="share-nick"
                                placeholder="User Nickname"
                                pause="100"
                                selectedobject="nick"
                                localdata="users"
                                searchfields="nick"
                                titlefield="nick"
                                minlength="1"
                                inputclass="form-control form-control-small"
                  /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;label for="share-content" class="col-xs-2 col-xl-2 control-label"&gt;Share content message&lt;/label&gt;
              &lt;div class="col-xs-10 col-xl-10"&gt;
                  &lt;input type="text" placeholder="content" id="share-content" ng-model="AddShareForm.content"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;div class="col-xs-offset-2 col-xs-10 col-xl-offset-2 col-xl-10"&gt;
                  &lt;button class="blue-button" type="submit" class="btn btn-default"&gt;Add&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>