Facebook
From Jittery Cat, 4 Months ago, written in HTML5.
Embed
Download Paste or View Raw
Hits: 56
  1. <div class="card" ng-hide="edit" ng-click="edit=true">
  2.     <h4>{{ card.title }}</h4>
  3.     <span class="description">{{ card.description }}</span>
  4. </div>
  5.  
  6. <div class="card" ng-show="edit" ng-model-options="modelOptions">
  7.     <div class="flex">
  8.         <label><strong>Title:&nbsp;</strong></label>
  9.         <input type="text"
  10.               ng-model="card.title"
  11.               ng-change="update()"/>
  12.     </div>
  13.     <textarea ng-model="card.description"
  14.              ng-change="update()"
  15.              placeholder="Enter description.."></textarea>
  16.     <button ng-click="edit=false">Close</button>
  17. </div>