Message Boards
How can we use httpClient in angular + liferay 7.2
How can we use httpClient in angular + liferay 7.2
Liferay Master Posts: 550 Join Date: 12/29/10 Recent PostsHi All,
We are trying to develop liferay/Angular module in liferay 7.2, which is also known as Angular Widget.
Here is the article which we are referring . https://help.liferay.com/hc/en-us/articles/360029028031-Developing-an-Angular-Application
It is not allowing to add below module in 7.2 Angular Widget.
import { HttpClientModule } from '@angular/common/http';
It gives error in console and fails the application to load. What way we to call the services in liferay Angular widget.
We try to integrate this example, in this example also, it showed only fake response.. not actual service call.
https://github.com/liferay/liferay-docs/tree/master/en/developer/appdev/code/angular-guestbook/after/my-angular-guestbook
Can someone please help me with that?