title: how to check a string is empty in angularjs
body: <p>I am checking a value in my controller.Here is my code.</p>
  
  <pre><code>var contents = atob(response.documents);
  // I checked the value in contents . it is displaying ""
  if(contents === ""){
   // no contents
  }
  </code></pre>
  
  <p>the if condition is retuning false, when the contents has "" and when the contents has data.
  How to check condition?</p>