I'm using Angular elements to show a angular page inside an existing Spring-Boot project.
I have an inquire button with which I load data from backend in the component typescript file and then display it on the screen. I'm using two different methods for it :
- {{data.name}}
- Making a form and then doing form.patchValue()
Both are working fine when I run the angular project in local server but when run the page via the Spring boot project (Angular elements), I'm unable to display data via the first method i.e {{data.name}}.
Any idea why?
Code:-
component.ts
data = {}
populateData(data) {
this.data = data
}
component.html
<input value="{{data.name}}" />