
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
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 382 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.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.