Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

nested directives doesn't inherit scope from each other? #6866

@fxck

Description

@fxck

Consider this code

<div directive-one="['foo', 'bar']">
    <directive-two />
</div>

where directive-one has this setting

scope: {
  arr: '=directiveOne' 
}

and directive-two doesn't have any scope param defined(not that directive-two is not inside directive one's template for a reason, directive two doesn't really have a template and is there just to provide data from it's attribute for child directives). I would have thought that arr would be accessible in directive-two's scope, but it's not scopes looks like this

ql0hx

where 00B is from directive-one and 00A is from directive-two..

plunk's here http://plnkr.co/edit/T1sm9z2EjMFwVoGpdoGk?p=preview

is this behaviour expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions