
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@neoprospecta/angular-dialog
Advanced tools
First way:
Install dependence directly from NPM, running this command on terminal in the project's root folder.
npm install @neoprospecta/angular-dialog --save
Second way:
Declare angular-dialog as dependence into package.json file.
"@neoprospecta/angular-dialog":"^4.0.0"
Install dependence, running this command on terminal in the project's root folder.
npm install
import { DialogModule } from '@neoprospecta/angular-dialog';
@NgModule({
...
imports: [
DialogModule
],
...
})
export class AppModule { }
import { DialogService } from '@neoprospecta/angular-dialog';
@Component(...)
export class AppComponent {
...
constructor(
private dialogService: DialogService
){ }
...
}
import { DialogAction } from '@neoprospecta/angular-dialog';
import { Dialog } from '@neoprospecta/angular-dialog';
...
myFunction() {
console.log('Button cliked!');
}
openDialog() {
let dialogActions: DialogAction[] = new Array<DialogAction>();
dialogActions.push(
{
name: 'Action Name',
onClick: () => this.myFunction(),
color: 'primary',
position: 'right',
closeDialogAfterClick: true
});
let dialog: Dialog = new Dialog(
{
title: 'Dialog Test',
content: '<p>Which option do you choose?</p>',
actions: dialogActions,
disableClose: false,
width: '400px',
height: '170px'
});
this.dialogService.open(dialog);
}
// Import Angular Material Design components themes
@import '~@angular/material/theming';
@include mat-core();
// Default App Custom theme
$primary: mat-palette($mat-teal, 500);
$accent: mat-palette($mat-amber);
$warn: mat-palette($mat-orange);
$theme: mat-light-theme($primary, $accent, $warn);
@include angular-material-theme($theme);
// Import all App custom components theme.
@import '~@neoprospecta/angular-dialog/theming/_dialog-theme.component';
// Apply the theme.
@mixin app-components-theme($theme) {
@include dialog-theme($theme);
}
...
@import './all-theme';
// Apply Angular Material Design global styles
@include app-components-theme($theme);
this.dialogService.open(new Dialog({...}));
new DialogAction({..., onClick: () => this.myFunction(), ...});
new DialogAction({..., closeDialogAfterClick: true, ...});
| Atribute | Type | Description | Example | Default |
|---|---|---|---|---|
| name | string | Name of button that appears in writed in him. | 'Save', 'Cancel', .. | - |
| onClick | Function | Function of your component called from dialog when the button is clicked. | save() {...}, cancel() {...}, ... | - |
| color | string | Color of button's background. Only theme colors. | 'default', 'primary', 'warn', 'accent', 'background' or 'foreground' | - |
| position | string | Position of button in dialog. This is optional. | 'left', 'right' | 'right' |
| closeDialogAfterClick | boolean | Configure to close dialog after button was cliked. This is optional. | true, false | true |
| Atribute | Type | Description | Example | Default |
|---|---|---|---|---|
| title | string | Title of dialog that appears on top of it. | 'Deletion warning!' | - |
| content | any | Content of dialog that appers on middle of it. | 'You are deleting an important data are you sure?' | - |
| actions | DialogAction[] | Array of actions. | {name: 'Skip', onClick: () => this.skip(), color: 'primary',} | - |
| disableClose | boolean | This configure if the dialog will close when user click out of dialog or press ESC. | true, false | false |
| width | string | Customize width of dialog. | '500px' | auto |
| height | string | Customize height of dialog. | '300px' | auto |
© Neoprospecta | MIT LICENSE
FAQs
Angular Dialog
We found that @neoprospecta/angular-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.