Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
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.
ngx-whats-new
Advanced tools
Readme
Ngx-whats-new is an angular module with a multi-modal component that is typically used to present new features of your application.
npm i ngx-whats-new
Import the module:
import { NgModule } from '@angular/core';
import { NgxWhatsNewModule } from 'ngx-whats-new';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [NgxWhatsNewModule],
bootstrap: [AppComponent],
})
export class AppModule {}
Use <ngx-whats-new>
in your component:
app.component.html
<button (click)="showDialog()">Open Dialog</button>
<ngx-whats-new
*ngIf="isDialogVisible"
(closeModal)="closeDialog()"
[items]="modals"
[options]="options"
>
</ngx-whats-new>
app.component.ts
/** initial state of the modal */
isDialogVisible = true;
/** global options */
options = {
disableClose: true,
customStyle: {
width: '500px',
borderRadius: '10px',
boxShadow: '0px 0px 10px 5px #999',
},
};
/** definition of all modals to show */
modals = [
{
imageHeight: 500,
imageSrc: 'https://placeimg.com/500/500/arch',
title: 'What is new in 5.0',
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing el aspect et just.',
html: 'Hello <b>world!</b>',
button: {
text: 'Okay',
textColor: '#fff',
bgColor: '#333',
},
},
{
text: 'Lorem ipsum dolor sit amet, consectetur adipiscing el aspect et just. Spsum dolor sit amet, consectetur adipiscing el aspect et just',
button: {
text: 'Got it!',
textColor: '#fff',
bgColor: '#333',
},
},
];
General options:
export interface Options {
disableClose?: boolean;
enableKeyboardNavigation?: boolean;
clickableNavigationDots?: boolean;
customStyle: {
width?: string;
boxShadow?: string;
borderRadius?: string;
borderSize?: string;
}
}
Options of a single modal window:
export interface ModalWindow {
imageSrc?: string;
text: string;
imageHeight?: string;
imageBgColor?: string;
button?: {
text: string;
textColor: string;
bgColor: string;
position: string;
};
}
FAQs
Ngx-whats-new is an angular module with a multi-modal component that is typically used to present new features of your application.
The npm package ngx-whats-new receives a total of 110 weekly downloads. As such, ngx-whats-new popularity was classified as not popular.
We found that ngx-whats-new demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.