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.

ngStyle directive array syntax not working for empty string #9038

@raksja

Description

@raksja

http://jsfiddle.net/x6347xs6/2/

When we use the array syntax in empty style

ng-style="{'one': {color: 'blue'}, 
                    'two': { color: 'green'},
                    '': {color: 'yellow'},
                    undefined: {color: 'red'}}[colorindex]"

In here all the blue, green, red works. But if colorindex='' yellow is not getting applied.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions