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.

directive attribute evaluation inconsistent between defined & undefined attributes #1104

@leefernandes

Description

@leefernandes

You don't use $parent.prop with @attributes defined in the directive scope definition, but if an attribute isn't defined in scope definition, then you need to use $parent. This is confusing/inconsistent.

http://jsfiddle.net/ItsLeeOwen/UYkJP/

I don't know that I'd ever use an inline attribute to access an isolated scope property, in all of my use cases they've been to access parent scope properties. Whatever the intent, it would be ideal if these were consistent.

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