Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="" ng-click="modalshow = !modalshow; modal.open();">Open Modal</a>
- <div ng-show="modalshow" id="modal">
- <h3 id="tofs" >Terms of Service</h3>
- <p>Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum </p>
- <span>Cancel</span>
- <span>Accept/span>
- </div>
- <h2>Seprate Content</h2>
- angular.module('app')
- .controller('Controller', modalCtrl);
- function modalCtrl() {
- $scope.modal = {
- open: function() {
- angular.element('#tofs').focus();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement