Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <a href="" ng-click="modalshow = !modalshow; modal.open();">Open Modal</a>
  2. <div ng-show="modalshow" id="modal">
  3. <h3 id="tofs" >Terms of Service</h3>
  4. <p>Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum </p>
  5. <span>Cancel</span>
  6. <span>Accept/span>
  7. </div>
  8. <h2>Seprate Content</h2>
  9.  
  10. angular.module('app')
  11. .controller('Controller', modalCtrl);
  12.  
  13. function modalCtrl() {
  14. $scope.modal = {
  15. open: function() {
  16. angular.element('#tofs').focus();
  17.  
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement