Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How can we use httpClient in angular + liferay 7.2
Hi 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?
