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 ?
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 ?