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.

angular expression assignment bug #3869

Closed
@lgersman

Description

@lgersman

hi,

i just recognized that angular expression assignments with filter seems to be buggy (tested in Angular 1.1.5).

When i do an assignment within an ng-init

ng-init="test1 = data | orderBy:'name'"

i just get just data without applied orderBy. the same without assignment

{{data | orderBy:'name'}}

works as expected (orderBy is applied).

I can workaround it by rewriting my ng-init assignment to

ng-init="test1 = (data | orderBy:'name')"

Testcase : http://jsfiddle.net/lgersman/kMcnU/

Kind regards,

Lars

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions