
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@angular2-material/card
Advanced tools
md-card is a content container component that conforms to the spec of a Material Design card.
See plunker example here.
Simply add your content between md-card tags to consume basic card styles like box-shadow and default padding.
<md-card>
Basic card.
</md-card>
Output:
We also provide a number of preset sections that you can mix and match within the md-card tags.
<md-card-title>: adds styles for a title<md-card-subtitle>: adds styles for a subtitle<md-card-content>: main content section, intended for blocks of text<img md-card-image>: stretches image to container width<md-card-actions>: wraps and styles buttons<md-card-footer>: anchors section to bottom of cardExample markup for a card with section presets:
<md-card>
<md-card-subtitle>Subtitle first</md-card-subtitle>
<md-card-title>Card with title</md-card-title>
<md-card-content>
<p>This is supporting text.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad</p>
</md-card-content>
<md-card-actions>
<button md-button>LIKE</button>
<button md-button>SHARE</button>
</md-card-actions>
</md-card>
Output:
md-card-actions has a few layout shortcuts. You can add align="end" to align the buttons at the end of
the main axis (flex-end). The default is align="start" (flex-start).
You can also leverage preset layouts that format some of the sections together.
<md-card-header>Formats the following sections into a header:
<md-card-title>: title to format within header<md-card-subtitle>: subtitle to format within header<img md-card-avatar>: image to use for avatarExample markup for a card with a header:
<md-card>
<md-card-header>
<img md-card-avatar src="path/to/img.png">
<md-card-title>Header title</md-card-title>
<md-card-subtitle>Header subtitle</md-card-subtitle>
</md-card-header>
<img md-card-image src="path/to/img.png">
<md-card-content>
<p>Here is some more content</p>
</md-card-content>
</md-card>
Output:
<md-card-title-group>Groups the following sections together:
<md-card-title>: title to format within group<md-card-subtitle>: subtitle to format within group<img md-card-sm-image><img md-card-md-image><img md-card-lg-image>Example markup for a card with title-group layout:
<md-card>
<md-card-title-group>
<img md-card-sm-image src="path/to/img.png">
<md-card-title>Card with title</md-card-title>
<md-card-subtitle>Subtitle</md-card-subtitle>
</md-card-title-group>
</md-card>
Output:

FAQs
Angular 2 Material card
The npm package @angular2-material/card receives a total of 79 weekly downloads. As such, @angular2-material/card popularity was classified as not popular.
We found that @angular2-material/card 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.