title: How to validate the form using angularjs when the name field has .(dot) in it?
body: <p>In my form I have a input tag with name="Customer.Firstname" so when i refer to name value in angularjs its taking only customer as the value and .Firstname is going unidentified.
  Here is my code:</p>
  
  <pre><code>&lt;label class="label_block" ng-hide="ApplicantDetails.Customer.FirstName.$error.required || ApplicantDetails.Customer.FirstName.$error.pattern"&gt;FirstName&lt;/label&gt;
  &lt;span class="clearable"&gt;
      &lt;input class="textbox"  type="text" name="Customer.FirstName" ng-model="Customer.FirstName" ng-init="Customer.FirstName='@Model.Customer.FirstName'" value="@Model.Customer.FirstName" ng-pattern="/^([a-zA-Z-']{1,30})$/" required="required"/&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>Here am trying to hide the label when the textbox is empty.How can i do that? </p>