I am trying to use markdown which is giving data binding error. The datatype of [data] in my markdownComponent.d.ts file is 'string |undefined|null' but still gives error " Can't bind to 'data' since it isn't a known property of 'markdown'."
error in ecmp of markdown.component.d.ts
error: Can't bind to 'data' since it isn't a known property of 'markdown'.
error in markdownComponent.d.ts file
markdownContent is of type string and initialized
I dont understand the problem ... data and markdownContent both are of type: string then why markdownContent can not be assigned to [data]? i've imported all required modules i.e. FormsModule , ReactiveModule, ngx-markdown ...also while running command 'npm i --force ngx-markdown' i got an error that "marked" does not exist so i installed "marked" and imported it in markdownComponent.d.ts the "marked" error was resolved but still im getting error in ecmp .
I want to assign [data]="markdownContent"
I had the same issue while trying to use
[email protected]with angular 15Downgrading to
[email protected]fixed it