title: Allowing alphanumeric and dot in scope
body: <p>How can I allow only Alphanumeric characters and dots to a scope</p>
  
  <pre><code>&lt;input type="text" ng-model="test" /&gt;
  </code></pre>
  
  <p>script</p>
  
  <pre><code>$scope.myFn = function(){
  if($scope.test != ''){
  alert("Please use only Alphanumeric characters or dots")
  }
  
  }
  </code></pre>