
Product
Introducing License Overlays: Smarter License Management for Real-World Code
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
patternfly-ng
Advanced tools
A collection of PatternFly Angular components and other useful things to be shared.
Welcome to PatternFly-Ng. This is a library of common Angular components for use with the PatternFly reference implementation. Below is information on how to get started using PatternFly-ng. If you wish to contribute to PatternFly-ng, please go to our Contributions page.
This example demonstrates using the Angular-cli to get started with PatternFly-ng
ng-cli
and webpacknpm i -g @angular/cli
ng new patternfly-ng-app
cd patternfly-ng-app
ng serve
Install patternfly-ng
npm install patternfly-ng --save
Add patternfly-ng dependencies
patternfly
npm install patternfly --save
src/app/app.module.ts
and addimport { NotificationModule } from 'patternfly-ng/notification';
// Or
import { NotificationModule } from 'patternfly-ng';
...
@NgModule({
...
imports: [NotificationModule, ... ],
...
})
.angular-cli.json
and insert a new entry into the styles array "styles": [
"../node_modules/patternfly/dist/css/patternfly.min.css",
"../node_modules/patternfly/dist/css/patternfly-additions.min.css",
"../node_modules/patternfly-ng/dist/css/patternfly-ng.min.css",
"styles.css",
],
src/app/app.component.html
and add<pfng-toast-notification
[header]="'test header'"
[message]="'this is a notification'"
[showClose]="'true'"
[type]="'success'">
</pfng-toast-notification>
.angular-cli.json
and insert a new entry into the styles array "styles": [
"../node_modules/dragula/dist/dragula.min.css",
"../node_modules/patternfly/dist/css/patternfly.min.css",
"../node_modules/patternfly/dist/css/patternfly-additions.min.css",
"../node_modules/patternfly-ng/dist/css/patternfly-ng.min.css",
"styles.css",
],
.angular-cli.json
and insert a new entry into the scripts array "scripts": [
"../node_modules/patternfly/dist/js/patternfly-settings.js"
],
FAQs
A collection of PatternFly Angular components and other useful things to be shared.
The npm package patternfly-ng receives a total of 386 weekly downloads. As such, patternfly-ng popularity was classified as not popular.
We found that patternfly-ng demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.