I have used angualr 7 and i m passing the value from the service class of angular as:
executeHelloWorldBeanServiceWithPathVariable(name){
console.log("name coming from here"+name);
return this.httpClient.get<HelloWorldBean>('http://localhost:8080/hello-world/path-variable/${name}');
console.log("hello world bean service executed");
}
The name is being printed in console as I tested:
console.log("name coming from here"+name);
Its being printed in console as here is no problem.
In my spring boot i declared as:
@GetMapping(path="/hello-world/path-variable/{name}")
public HelloWorldBean helloWorldBeanPathVariable(@PathVariable("name") String name) {
System.out.print("name is"+name);
return new HelloWorldBean(String.format("Hello world %s", name));
}
The name parameter which I pass from angular is not being printed as I tried to debug using:
System.out.print("name is"+name);
But it is showing in el expression
So in my UI I am getting:


