Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
kentico-cloud-angular-http-service
Advanced tools
Readme
This is an implementation of the IHttpService
that can be used instead of the default http service available in Core package that uses axios
package.
This library uses Angular's HttpClient
to make http requests and can be used only in Angular applications.
If you need to use server side rendering with prerender
using Angular universal, you have to use Angular's built-in Http service because otherwise Angular will not wait until the requests are fetched from server and therefore your code would not be reflected in HTML of your page. You can find more information about the issue here
First, you need to import AngularHttpServiceModule
module into your AppModule
(or other module depending on your architecture) and then you can inject AngularHttpService
just as you are used to in Angular.
import { AngularHttpServiceModule } from 'kentico-cloud-angular-http-service';
@NgModule({
imports: [
AngularHttpServiceModule,
// other imports
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
and example taken from a component:
private readonly deliveryClient: IDeliveryClient;
constructor(angularHttpService: AngularHttpService) {
this.deliveryClient = new DeliveryClient({
projectId: 'da5abe9f-fdad-4168-97cd-b3464be2ccb9',
httpService: angularHttpService
});
}
FAQs
Implementation of IHttpService using Angular HttpClient
The npm package kentico-cloud-angular-http-service receives a total of 3 weekly downloads. As such, kentico-cloud-angular-http-service popularity was classified as not popular.
We found that kentico-cloud-angular-http-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.