
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
ngx-mat-dialog
Advanced tools
Type-safe Angular Material Dialogs Directive for Angular
npm install ngx-mat-dialog
import { MatDialogDirective } from "ngx-mat-dialog";
@Component({
selector: "dialog-overview-example",
templateUrl: "dialog-overview-example.html",
standalone: true,
imports: [MatDialogDirective, DialogOverviewExampleDialog],
})
export class DialogOverviewExample {
name = "";
animal = "";
visible = false;
openDialog() {
this.visible = true;
}
}
<button (click)="openDialog()">Open Dialog</button>
<ng-template matDialog [(matDialogVisible)]="visible">
<dialog-overview-example-dialog
[name]="name"
[(animal)]="animal"
></dialog-overview-example-dialog>
</ng-template>
Note: You can't use shorthand syntax like
*matDialog
, because it doesn't support@Output()
. As a result, you cannot listen to the visibility changes of the dialog.
Note: Avoid using
MatDialogConfig.data
to pass data to the dialog and retrievedialogResult
from theMatDialogRef.close
. Instead, use@Input()
and@Output()
for type safety.
Selector: [matDialog]
Exported as: matDialog
Input | Description |
---|---|
@Input() matDialogVisible: boolean; | Whether the dialog is visible. |
@Input() matDialogConfig: MatDialogConfig<undefined>; | Configuration for the dialog. |
@Output() matDialogVisibleChange: EventEmitter<boolean> | Emits when the dialog visibility changes. |
dialogRef: null | MatDialogRef<unknown, void> | Reference to the MatDialogRef . |
FAQs
Type-safe Angular Material Dialogs Directive for Angular
We found that ngx-mat-dialog 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.