Skip to content

Instantly share code, notes, and snippets.

@lucaswxp
Created September 23, 2016 18:07
Show Gist options
  • Save lucaswxp/68f44f33a3eb53cad4ddc30561a195bd to your computer and use it in GitHub Desktop.
Save lucaswxp/68f44f33a3eb53cad4ddc30561a195bd to your computer and use it in GitHub Desktop.
<a rdz-modal="contato">Abrir modal contato</a>
.directive('rdzModal', function($rootScope){
return {
restrict: 'A',
link: function(scope, element, attrs){
alert(attrs.rdzModal) // ISSO E UMA STRING
}
}
})
<a rdz-modal="'contato'">Abrir modal contato</a> NAO ERA ASSIM Q EU TINHA Q FAZER PRA DAR CERTO?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment