Guys,

I made a plunker to demonstrate my problem. I want access nomo object in
child 'filha' directive. Why it don't inherit scope from pai directive?

http://plnkr.co/edit/Ot8y9pjidmmsURmJinfV?p=preview

Thanks


2014-04-24 14:05 GMT-03:00 César Barone <[email protected]>:

> Hello,
>
> I created my own directive and used ng-repeat in it  but i can't use value
> of an element inside my directive.
>
> <treefolder ng-repeat="treeElement in tree" tree-entry="treeElement">
>
> And my directive
>
>   1 'use strict'
>   2
>   3 @cerneWebClientApp.directive 'treefolder', [
>    5   "$translate"
>   6   "$filter"
>   7   ($translate, $filter)->
>   8     templateUrl: 'views/cerne/tree/treefolder.html'
>   9     restrict: 'E'
>  10     replace: true
>  11     transclude: true
>  12     scope: {
>  13       *treeEntry: '='*
>  14     }
>  15     link: (scope, element, attr) ->
>  16       scope.expand = true
>  17
>
>  18
>  19       scope.$watch('expand', () ->
>  20         console.log scope.expand
>  21       )
>  22
>  23 ]
>
> How can i get treeEntry value?
>
> THanks
>

-- 
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.

Reply via email to