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.

Leading/trailing whitespace in directive attributes with scope "&" is lost #14539

Closed
@ChristopherBrix

Description

@ChristopherBrix

When I create a directive with an attribute which scope is defined with &, leading and trailing whitespaces are lost (fiddle).

While it can be circumvented by creating a variable and passing the evaluated variable as the value (using attribute={{variable}}, see the fiddle), this looks like a bug to me.

The fiddle uses Angular 1.4.9, but it's still present in the current snapshot v1.5.6-build.4785+sha.707664a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions