
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@pyramid-embed/embed-angular
Advanced tools
The wrapper for [@pyramid-embed/embed-js](https://www.npmjs.com/package/@pyramid-embed/embed-js)
The wrapper for @pyramid-embed/embed-js
yarn add @pyramid-embed/embed-angular
npm i @pyramid-embed/embed-angular
Please check online help for the general documentation.
import { Component } from '@angular/core';
import { EmbedOptions } from '@pyramid-embed/embed-angular';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent {
title = 'embed-angular-example';
options: EmbedOptions;
constructor() {
this.options = {
contentId: 'a4c7902d-f0e8-4e3c-8030-8330adf79a2c',
};
}
}
<div>
<pyramid-embed-angular
host="http://pyramid:8181"
[options]="options"
width="1280px"
height="720px">
</pyramid-embed-angular>
</div>
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { EmbedAngularModule } from '@pyramid-embed/embed-angular';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, EmbedAngularModule],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
host: string
- URL of the Pyramid instanceoptions: EmbedOptions
- embed optionswidth: string
- container widthheight: string
- container heightloginType?: "none" | "forms" | "windows" | "saml"
- authentication typeuserName?: string
- username, used when loginType="forms"
password?: string
- password, used when loginType="forms"
authToken?: string
- Pyramid authentication tokensamlToken?: string
- SAML tokenclassName?: string
- apply a className to the container elementauthFailureCallback?: Function
- a function that will be called when the embed token has expiredimport { Component } from '@angular/core';
import { EmbedOptions, Filter } from '@pyramid-embed/embed-angular';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
})
export class AppComponent {
title = 'embed-angular-example';
options: EmbedOptions;
constructor() {
const filter = Filter.create().addUniqueName('[customer].[country].[France]');
this.options = {
contentId: 'a4c7902d-f0e8-4e3c-8030-8330adf79a2c',
filters: filter
};
}
}
<div>
<pyramid-embed-angular
host="http://pyramid:8181"
[options]='options'
width="1280px"
height="720px">
</pyramid-embed-angular>
</div>
For more help on embedding with Pyramid, especially instructions on authentication, scenarios and use of REST APIs together with embedding, please see online help.
FAQs
The wrapper for [@pyramid-embed/embed-js](https://www.npmjs.com/package/@pyramid-embed/embed-js)
The npm package @pyramid-embed/embed-angular receives a total of 31 weekly downloads. As such, @pyramid-embed/embed-angular popularity was classified as not popular.
We found that @pyramid-embed/embed-angular demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.