Sign In

@shipeasy/sdk-angular

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@shipeasy/sdk-angular

Angular integration for ShipEasy feature flags and experimentation

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@shipeasy/sdk-angular

Angular integration for ShipEasy feature flags and experimentation.

Install

pnpm add @shipeasy/sdk-angular @shipeasy/sdk

Usage

// app.config.ts
import { ApplicationConfig } from "@angular/core";
import { provideFlaglab } from "@shipeasy/sdk-angular";

export const appConfig: ApplicationConfig = {
  providers: [provideFlaglab({ sdkKey: "se_pub_..." })],
};
// my.component.ts
import { Component, OnInit } from "@angular/core";
import { AsyncPipe } from "@angular/common";
import { FlaglabService } from "@shipeasy/sdk-angular";
import { Observable } from "rxjs";

@Component({
  selector: "app-my",
  standalone: true,
  imports: [AsyncPipe],
  template: `
    <div *ngIf="newDashboard$ | async">New dashboard</div>
    <button>{{ (hero$ | async)?.params?.buttonText }}</button>
  `,
})
export class MyComponent implements OnInit {
  newDashboard$!: Observable<boolean>;
  hero$!: Observable<{ inExperiment: boolean; group: string; params: { buttonText: string } }>;

  constructor(private flaglab: FlaglabService) {}

  async ngOnInit() {
    await this.flaglab.identify({ user_id: "u_123", plan: "pro" });
    this.newDashboard$ = this.flaglab.getFlag("new_dashboard");
    this.hero$ = this.flaglab.getExperiment("hero_cta", { buttonText: "Get started" });
  }
}

FAQs

Package last updated on 17 Apr 2026

Did you know?

Socket

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.

Install

Related posts