title: Angular: ng-model directive not working with `<span>` element
body: <p>I am currently working on a web application that uses bootstrap and angular.js, and I was running into some difficulty setting the default value of a <code>span</code> embedded within the HTML code of one of the pages.</p>
  
  <p>Previously, I was able to use <code>ng-model</code> to set and modify the values of an HTML element within the HTML code from the angular controller found in a separate file.  This is what the controller looks like:</p>
  
  <pre><code>angular.module('mediaPlaylistApp', [])
      .controller('mediaPlaylistCtrl', ['$scope', 'sharedProperties', .....,
          function($scope, sharedProperties, .....,){
          //many lines of code in here
  }]);
  </code></pre>
  
  <p>Within this, I am able to set attributes of the <code>$scope</code> variable that can then be used by elements on the HTML page.  For example, I can set a checkbox to be checked with the following JS line in the above controller:</p>
  
  <pre><code>$scope.areAllSelected = true;
  </code></pre>
  
  <p>When it is used in conjunction with the following HTML code:</p>
  
  <pre><code>&lt;input type="checkbox" ng-model="areAllSelected"&gt;
  </code></pre>
  
  <p>This works as expected.  <strong>However</strong>, my issue arises when I try to replicate this technique for a different <code>span</code> element.</p>
  
  <p>When I insert this JS line into the angular controller:</p>
  
  <pre><code>$scope.playlistName = 'Enter Playlist Name Here';
  </code></pre>
  
  <p>In conjunction with this HTML code:</p>
  
  <pre><code>&lt;span ng-model="playlistName"&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>It does not work as expected, as the <code>span</code> remains blank and not displaying the string <code>'Enter Playlist Name Here'</code>.  What could be causing this behavior?  Does <code>ng-model</code> not work for elements other than <code>input</code>, or is it a simple mistake I've made or a completely unrelated issue?  Any help on this would be appreciated.</p>