Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.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.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.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 4,454 weekly downloads. As such, patternfly-ng popularity was classified as 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.