title: Open an Outlook within angular controller
body: <p>This is working:</p>
  
  <p><strong>Html</strong></p>
  
  <pre><code>&lt;a href="mailto:?subject={{vm.property.address.streetNumber}}, {{vm.property.address.streetName}} {{vm.cityName}} {{vm.stateName}}%20IPL%20#%20{{vm.property.id}}&amp;body={{comment.note}}"&gt;@L("CsEmail")&lt;/a&gt;
  </code></pre>
  
  <p>This is not working:</p>
  
  <pre><code>&lt;a ng-href="{{vm.email}}" ng-click="vm.composeEmail(comment)"&gt;@L("CsEmail")&lt;/a&gt;
  </code></pre>
  
  <p><strong>js</strong></p>
  
  <pre><code>vm.composeEmail = function (data) {
  vm.email = "mailto:?subject={{vm.property.address.streetNumber}}, {{vm.property.address.streetName}} {{vm.cityName}} {{vm.stateName}}%20IPL%20#%20{{vm.property.id}}&amp;body={{data.note}}";
  
      // I need to save this here
  
                  };
  </code></pre>
  
  <p>Q : I need to save the data after sending the email.Hence I cannot use the first option.But 2nd option is not working.That means it is not opening the outlook. How to do that?</p>