Skip to content

nativeElement not getting updated ! #7

Description

@sumegha26

I have used clampy directive on projected content , when projected contents get updated from parent component it is still showing the same element.innerHTML = initially bound content;
<div clampy>
<ng-content><ng-content>
<div>

<div clampy>
My content h1
<div>

when I change parent component template where nativeElment on which directive is applied is changed:
<div clampy>
My content h1 changed !!
<div>

Element on which directive is applied remains same : My content h1

I gone through the code, seems like el.innerHTML is not getting updated

Here is my stackblitz example : Here is my stackblitz

https://stackblitz.com/edit/angular-znpncy

@alexandremoore , Please have a look

@ahnpnl any idea ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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