title: AngularJS - ui-sortable - How to disable sorting on just one item from the sortable list?
body: <p>Here is a <a href="http://plnkr.co/edit/9W9XilAO7LS6aAhR0iXk?p=preview" rel="noreferrer">Plunker example</a>.  [updated the plunk based on below answers]</p>
  
  <p><a href="http://plnkr.co/edit/KkTEakiWiiTjqSSndq9j?p=preview" rel="noreferrer">Updated Plunk</a></p>
  
  <p>How can I disable sorting on just one or two items. For example, item 1 and item 3, so the user can't move those two items ?</p>
  
  <p>I tried </p>
  
  <pre><code>   $scope.sortableOptions = {
         disabled:true,
     };
  </code></pre>
  
  <p>in sortableOptions, but that disables sorting on the whole list.</p>
  
  <p>I'm looking for something like  </p>
  
  <pre><code>  &lt;div ui-sortable="sortableOptions" ng-model="list"&gt;    
    &lt;div ng-repeat="item in list"&gt;    
      &lt;div ng-switch on="item.text"&gt;    
  
        &lt;div ng-switch-when="Item 1" &gt;    
          &lt;div ui-sortable="sortableOptions.disabled=true"&gt;{{item.text}} - Sorting disabled&lt;/div&gt;    
        &lt;/div&gt;  
  
       &lt;div ng-switch-default&gt;    
          &lt;div&gt;{{item.text}} - Sorting enabled&lt;/div&gt;    
        &lt;/div&gt;  
  
      &lt;/div&gt;    
    &lt;/div&gt;    
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks.</p>