i have a template reference name '#dataContent' to a div tag in component. How to set TextContent for the div from component class?
You can use @ViewChild to access to your div and make changes, but you also could create a variable in your component class and bind to the content in your div
Обсуждают сегодня