title: Angularjs: Html value from string variable
body: <p>I have an application in which the value of an html element comes from server as a template. I'm trying to assign this template, which is basically a string and get the variables in template bound to controller but angular doesn't bind the variables.</p>
  
  <p>To be more clear, I have a textarea like this</p>
  
  <pre><code>  &lt;textarea class="someclass" placeholder="${fbPostData.name}"
              ng-model="fbPostMessage"&gt;
    &lt;/textarea&gt;
  </code></pre>
  
  <p>In my controller, I assign fbPostMessage to be:</p>
  
  <pre><code>$scope.fbPostMessage = "Join {{userFirstName}}. Subscribe today to have fun!"
  </code></pre>
  
  <p>After these steps in my view I don't see the variables replaced with their values, <code>userFirstName</code> is not replaced by its value.</p>
  
  <p>I've tried <code>$compile</code> and it gave error. It probably expects html tags. How can I achieve what I want?</p>