Giter Site home page Giter Site logo

angular10_primeng's Introduction

PrimeNG with Angular 10

PrimeNG with Angular 10

https://primefaces.org/primeng/showcase/#/

PluralSight course by Glen Smith

Demo: https://glenasmith.github.io/pluralsight-primeng/alltimes

Source: https://github.com/glenasmith/pluralsight-primeng

Starter Kit: https://github.com/glenasmith/pluralsight-primeng/tree/starter-kit

New Angular 10 app

ng new agile-times

Choose scss

Install prettier addon in vs code, add setting to settings.json:

"editor.formatOnSave": true,

Details see: https://github.com/boeschenstein/vscode1-information

Install PrimeNG

npm install primeng --save npm install primeicons --save

Add to existing styles in angular.json. Order is important, because we we want to be able to override default values with your styles.scss:

"styles": [
  "node_modules/primeicons/primeicons.css",
  "node_modules/primeng/resources/primeng.css",
  "node_modules/primeng/resources/themes/bootstrap4-dark-purple/theme.css",            <--- choose a theme from the showcase
  "src/styles.scss"
],

Details: https://primefaces.org/primeng/showcase/#/setup

Hello World

Add ButtonModule to app.module.ts:

import { ButtonModule } from 'primeng/button';

and

  imports: [
    ...,
    ButtonModule
  ],

Remove all in app.component.html and set this:

<button pButton type="button" label="Click" ></button>
<p-button label="Click" ></p-button>

<router-outlet></router-outlet>

PrimeNG 10

FormLayout

Small css utility, written on top of PrimeFlex (optional Grid Library on PrimeNG): reduces amount of css you have to write yourself

ChartJS

https://www.chartjs.org/

https://www.primefaces.org/primeng/showcase/#/chart

npm install chart.js --save
"scripts": [
    "../node_modules/chart.js/dist/Chart.js",
    //..others
],

Quill (open source rich text editor)

https://quilljs.com/

https://www.primefaces.org/primeng/showcase/#/editor

npm install quill --save
"styles": [
    "../node_modules/quill/dist/quill.core.css",
    "../node_modules/quill/dist/quill.snow.css",
"scripts": [
    "../node_modules/quill/dist/quill.js",
],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.