Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. $scope.showAOptions = function(a) {
  2. $('.a-options').hide();
  3. $('.a-options-' + a.id).show();
  4. };
  5.  
  6. $scope.cancelAOptions = function(a) {
  7. $('.a-options-' + a.id).hide();
  8. };
  9.  
  10. <ion-content>
  11. <ion-list>
  12. <ion-item class="no-border"
  13. ng-repeat="a in As"
  14. on-tap="showAOptions(a)">
  15. <div class="item item-divider" ng-class="{'pending-resolution': a.pendingResolution}"> some code here that does always get displayed
  16.  
  17. </div>
  18.  
  19. <div class="item item-text-wrap a-options" ng-class="aOptionsClass(a.id)">
  20. ...SOME STUFF HERE...THIS IS THE EXPANDED PORTION
  21. <div class="row">
  22. <div class="col col-25 col-offset-50">
  23. <button class="button button-stable" ng-click="cancelAOptions(a)">Cancel</button>
  24. </div>
  25. </div>
  26. </div>
  27.  
  28. </ion-item>
  29. </ion-list>
  30. </ion-content>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement