This project has been renamed from ngx-material-faq to @angular-material-extensions/faq
Do you have any question or suggestion ? Please do not hesitate to contact us! Alternatively, provide a PR | open an appropriate issue here
If you like this project, support angular-material-extensions by starring :star: and sharing it :loudspeaker:
View all the directives and components in action at https://angular-material-extensions.github.io/faq
index.html
file like below:alternative solution:
Install of the official npm module of the material design icons
angular.json
fileInstall above dependencies via npm.
Now install @angular-material-extensions/faq
via:
Note:If you are using
SystemJS
, you should adjust your configuration to point to the UMD bundle. In your systemjs config file,map
needs to tell the System loader where to look for@angular-material-extensions/faq
:`
js map: { '@angular-material-extensions/faq': 'node_modules/@angular-material-extensions/faq/bundles/@angular-material-extensions/faq.umd.js', }
The only remaining part is to list the imported module in your application module. The exact method will be slightly
different for the root (top-level) module for which you should end up with the code similar to (notice MatFaqModule .forRoot()
):
Other modules in your application can simply import MatFaqModule
:
angular-material-extensions
add the mat-faq
or the mat-faq-admin
element to your template:
This component aims to list the provided frequently asked questions
This component is actually for admin purposes, like to add a frequently asked question to the backend, firebase ... and so on..
in your component
Please checkout the full documentation here or follow the official tutorial
clone this repo by running
link the @angular-material-extensions/faq package
navigate to the demo app directory
install the dependencies
run/start/serve the app
or
http://localhost:4200/
npm i
npm run build
or gulp build
To generate all *.js
, *.d.ts
and *.metadata.json
files:Link the library
cd demo
_ npm i
_ npm start
let us chat on Gitter
Built by and for developers :heart: we will help you :punch:
This project is supported by jetbrains with 1 ALL PRODUCTS PACK OS LICENSE incl. webstorm
Copyright (c) 2018 Anthony Nahas. Licensed under the MIT License (MIT)