Ale Dev,
você poderia manipular esse template com o *link *da diretiva ou
utilizar o *templateURL*, ao invés de *template.*
Em 13 de agosto de 2015 15:23, Samuel Castro e Silva <
[email protected]> escreveu:
> Posta o código completo da diretiva p ficar mais fácil.
>
> Você definiu o *$scope.ziggoOptions.video = "234234234"* dentro do
> controller da sua diretiva?
>
> 2015-08-13 14:05 GMT-03:00 Ale Dev <[email protected]>:
>
>> Ol Galera,
>>
>> to tentando fazer uma directiva para o Ziggeo, (api pra video)... porem
>> ta dando um erro estranho...
>>
>> A directiva é isso....
>>
>> .directive('ziggeoVideo', [function () {
>> return {
>> restrict: 'E',
>> template: '<ziggeo
>> ziggeo-video="{{ziggeoOptions.video}}"></ziggeo>'
>> };
>> }])
>>
>> Esse attributo *ziggeo-video* não é directiva, é do próprio javascript
>> do Ziggeo...
>>
>> esse attributo faz uma chamada ajax pra recuperar o video (lib do próprio
>> Ziggeo) ,pelo id...
>>
>> porem quando vejo o log, a chamada esta saindo assim :
>> "... http://ziggeo.com/{{ziggeoOptions.video}}/... "
>>
>>
>> em vez de sair assim:
>> "... http://ziggeo.com/123123123/... "
>>
>> parece que ele esta ignorando que é um propriedade de biding e mandando
>> do jeito que esta como se fosse uma string, porem quando eu coloco a mesma
>> coisa dentro de um h1 por exemplo, a propriedade da bind normal, e não ta
>> aparecendo erros no console....
>>
>> Alguem tem ideia do que ta acontecendo ?
>>
>> Obrigado!
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "AngularJS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Samuel Castro
>
> Full Stack Developer
>
> (37) 9110-8850
>
> --
> You received this message because you are subscribed to the Google Groups
> "AngularJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
*Gabriel FeitosaBlog: gabrielfeitosa.com
<http://gabrielfeitosa.com>Github: https://github.com/gabrielfeitosa
<https://github.com/gabrielfeitosa>*
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.