Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. app.controller('MainController',
  2. function MainController($scope) {
  3. $scope.user = "Hey Welcome";
  4.  
  5. $scope.open = function(template_path){
  6. $.fancybox({"href":template_path})
  7. }
  8. }
  9. )
  10.  
  11. <div class="pop-contnr">
  12. <h2>ADD</h2>
  13. <table>
  14. <thead>
  15. <tr>
  16. <th align=center>{{user}}</th>
  17. </tr>
  18. </thead>
  19. </table>
  20. </div>
  21.  
  22. $scope.openPage = function(template_path) {
  23. $.fancybox({
  24. 'type': 'iframe',
  25. 'href': template_path
  26. });
  27. }
  28.  
  29. $scope.open = function(template_path){
  30. $.fancybox({"href":template_path})
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement