Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@angular-extensions/elements
Advanced tools
by @tomastrajan
npm i @angular-extensions/elements
import { LazyElementsModule } from '@angular-extensions/elements';
LazyElementsModule
to the imports: []
of your AppModule
schemas: []
property with CUSTOM_ELEMENTS_SCHEMA
value to @NgModule
decorator of your AppModule
*axLazyElement
directive on an element you wish to load and pass in the url of the element bundleExample of module implementation...
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { LazyElementsModule } from '@angular-extensions/elements';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
imports: [BrowserModule, LazyElementsModule],
declarations: [AppComponent, FeatureComponent],
bootstrap: [AppComponent]
})
export class AppModule {}
Example of component implementation
import { Component } from '@angular/core';
@Component({
selector: 'your-org-feature',
template: `
<some-element *axLazyElement="elementUrl"></some-element>
`
})
export class FeatureComponent {
elementUrl = 'https://your-org.com/elements/some-element.js';
}
Library was tested with the following versions of Angular and is meant to be used
with the corresponding major version ("@angular/core"": "^8.0.0"
with "@angular-extensions/elements": "^8.0.0"
).
7.x
8.x
Please, feel free to open an issue or submit a pull request to make this project better for everyone! 🤗
Tomas Trajan 💻 🎨 💡 📖 🤔 🚇 ⚠️ | Wayne Maurer 🐛 💻 | Santosh Yadav 💻 📦 | David Dal Busco 💻 💡 | Zama Khan Mohammed 💻 🤔 ⚠️ | Angel Fraga Parodi 💡 🤔 | ye3i 💻 🤔 |
---|---|---|---|---|---|---|
Heorhi Shakanau 💻 🤔 |
FAQs
Unknown package
The npm package @angular-extensions/elements receives a total of 3,486 weekly downloads. As such, @angular-extensions/elements popularity was classified as popular.
We found that @angular-extensions/elements demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.