Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .directive('flag', function($compile) {
- return {
- restrict: 'E', // this means it will be an element
- scope: {
- current: '=current'
- },
- template: '<span class="flag-icon flag-icon-{{current}}"></span>',
- link: function(scope, element, attrs, ctrl) {
- }
- };
- // se usa:
- <flag current="'EEUU'"/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement