Advertisement
fmunoz92

Untitled

Sep 11th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     .directive('flag', function($compile) {
  2.     return {
  3.             restrict: 'E', // this means it will be an element
  4.             scope: {
  5.                 current: '=current'
  6.             },
  7.             template: '<span class="flag-icon flag-icon-{{current}}"></span>',
  8.             link: function(scope, element, attrs, ctrl) {
  9.             }
  10.         };
  11.  
  12. // se usa:
  13. <flag current="'EEUU'"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement