Skip to content

Changing public_id with observables #83

@smsami

Description

@smsami

Here is an issue I found with the cl-image tag. Given the following:

_user is a BehaviorSubject, which is undefined initially and is defined in the constructor of a component.

<cl-image [public-id]="(_user | async)?.logo" width="100%" height="auto">

if the _user is updated, the cl-image does get updated and the image changes ONLY AND ONLY if "enableProdMode" is disabled.

This has been tested in Angular2.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions