&quot; ng-model=&quot;checked&quot;&gt;&lt;br/&gt;&#10;&lt;button ng-model=&quot;button&quot; ng-disabled=&quot;checked&quot;&gt;Button&lt;/button&gt;</code></pre>
    </div>
  
    <div class="runnable-example-file" 
      name="protractor.js"
      type="protractor"
      language="js">
      <pre><code>it(&#39;should toggle button&#39;, function() {&#10;  expect(element(by.css(&#39;button&#39;)).getAttribute(&#39;disabled&#39;)).toBeFalsy();&#10;  element(by.model(&#39;checked&#39;)).click();&#10;  expec