4
4
5
5
# @angular-material-extensions/faq - Angular Library built with material design in order to provide a reusable faq (frequently asked questions) component for every project. Ask, Answer and List
6
6
7
- [ ![ npm version] ( https://badge.fury.io/js/@angular-material-extensions/faq.svg )] ( https://badge.fury.io/js/@angular-material-extensions/faq ) ,
8
- [ ![ npm] ( https://img.shields.io/badge/demo-online-ed1c46.svg )] ( https://angular-material-extensions.github.io/faq )
7
+ [ ![ npm version] ( https://badge.fury.io/js/%40angular-material-extensions%2Ffaq.svg )] ( https://badge.fury.io/js/%40angular-material-extensions%2Ffaq )
8
+ [ ![ npm demo] ( https://img.shields.io/badge/demo-online-ed1c46.svg )] ( https://angular-material-extensions.github.io/faq )
9
+ [ ![ Join the chat at https://gitter.im/angular-material-extensions/Lobby ] ( https://badges.gitter.im/angular-material-extensions/Lobby.svg )] ( https://gitter.im/angular-material-extensions/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge )
10
+ [ ![ CircleCI branch] ( https://img.shields.io/circleci/project/github/angular-material-extensions/faq/master.svg?label=circleci )] ( https://circleci.com/gh/angular-material-extensions/faq )
9
11
[ ![ Coverage Status] ( https://coveralls.io/repos/github/angular-material-extensions/faq/badge.svg?branch=master )] ( https://coveralls.io/github/angular-material-extensions/faq?branch=master )
10
12
[ ![ dependency Status] ( https://david-dm.org/angular-material-extensions/faq/status.svg )] ( https://david-dm.org/angular-material-extensions/faq )
11
13
[ ![ devDependency Status] ( https://david-dm.org/angular-material-extensions/faq/dev-status.svg?branch=master )] ( https://david-dm.org/angular-material-extensions/faq#info=devDependencies )
19
21
src="assets/demo.gif">
20
22
</p >
21
23
24
+ ## Built by and for developers :heart :
25
+ Do you have any question or suggestion ? Please do not hesitate to contact us!
26
+ Alternatively, provide a PR | open an appropriate issue [ here] ( https://github.com/angular-material-extensions/contacts/issues )
22
27
23
- ## Demo
28
+ If did you like this project, support [ angular-material-extensions] ( https://github.com/angular-material-extensions )
29
+ by starring :star : and sharing it :loudspeaker :
24
30
25
- View all the directives in action at https://anthonynahas.github.io/@angular-material-extensions/faq
31
+ ## Table of Contents
32
+ - [ Demo] ( #demo )
33
+ - [ Dependencies] ( #dependencies )
34
+ - [ Peer Dependencies] ( #peerDependencies )
35
+ - [ Additional Requirements - material (Include a theme)] ( #additional-requirements-material-theme )
36
+ - [ Additional Requirements - material icons] ( #additional-requirements-material-icons )
37
+ - [ Installation] ( #installation )
38
+ - [ Usage] ( #usage )
39
+ - [ Documentation] ( #documentation )
40
+ - [ Run Demo App Locally] ( #run-demo-app-locally )
41
+ - [ Development] ( #development )
42
+ - [ Other Angular Libraries] ( #other-angular-libraries )
43
+ - [ Support] ( #support )
44
+ - [ License] ( #license )
45
+
46
+ <a name =" demo " />
47
+
48
+ ## [ Demo] ( https://angular-material-extensions.github.io/faq )
49
+
50
+ View all the directives in action at [ https://angular-material-extensions.github.io/faq ] ( https://angular-material-extensions.github.io/faq )
51
+
52
+ <a name =" dependencies " />
26
53
27
54
## Dependencies
28
55
* [ Angular v6.x] ( https://angular.io ) (* requires* Angular 2 or higher, tested with 2.0.0) - Angular V6 - Material V6 are now supported
29
56
57
+ <a name =" peerDependencies " />
58
+
30
59
### Requirements (peer dependencies):
31
60
- [ angular flex-layout v6.0.0-beta.16] ( https://www.npmjs.com/package/@angular/flex-layout )
32
61
- [ angular material v6.2.1] ( https://www.npmjs.com/package/@angular/material )
33
62
- [ angular cdk v6.0.2] ( https://www.npmjs.com/package/@angular/cdk )
34
- - [ angular animations v6.0.4 ] ( https://www.npmjs.com/package/@angular/animations )
35
- - [ angular forms v6.0.4 ] ( https://www.npmjs.com/package/@angular/forms )
63
+ - [ angular animations v6.0.5 ] ( https://www.npmjs.com/package/@angular/animations )
64
+ - [ angular forms v6.0.5 ] ( https://www.npmjs.com/package/@angular/forms )
36
65
37
66
``` bash
38
67
npm i @angular/cdk @angular/material @angular/flex-layout @angular/animations @angular/forms
39
68
```
40
69
41
- ### Additional requirements (Material Design)
70
+ <a name =" additional-requirements-material-theme " />
71
+
72
+ ### Additional requirements Theme (Material Design)
42
73
- [ angular material theme] ( https://material.angular.io/guide/getting-started#step-4-include-a-theme )
43
- - [ angular material icons] ( https://material.angular.io/guide/getting-started#step-6-optional-add-material-icons )
44
74
75
+ <a name =" additional-requirements-material-icons " />
76
+
77
+ ## Additional Requirements - Import the material design icons [ learn more] ( https://material.angular.io/guide/getting-started#step-6-optional-add-material-icons )
45
78
46
- ## Installation
79
+ - The easiest way to import material design icons is to provide a link in your ` index.html ` file like below:
80
+
81
+ ``` html
82
+ <link href =" https://fonts.googleapis.com/icon?family=Material+Icons" rel =" stylesheet" >
83
+ ```
84
+
85
+ - alternative solution:
86
+
87
+ 1 . Install of the official npm module of the material design icons
88
+
89
+ ``` bash
90
+ npm i -s material-design-icons
91
+ ```
92
+
93
+ 2 . Import them in your ` angular.json ` file
94
+
95
+ ``` json
96
+ "styles" : [
97
+ " styles.css" ,
98
+ " ../node_modules/material-design-icons/iconfont/material-icons.css"
99
+ ],
100
+ ```
101
+
102
+
103
+ ----
104
+
105
+ <a name =" installation " />
106
+
107
+ ## [ Installation] ( https://angular-material-extensions.github.io/faq/getting-started )
47
108
Install above dependencies via * npm* .
48
109
49
110
Now install ` @angular-material-extensions/faq ` via:
@@ -64,36 +125,37 @@ map: {
64
125
65
126
Once installed you need to import the main module:
66
127
``` js
67
- import { NgxMaterialFaqModule } from ' @angular-material-extensions/faq' ;
128
+ import { MatFaqModule } from ' @angular-material-extensions/faq' ;
68
129
```
69
130
The only remaining part is to list the imported module in your application module. The exact method will be slightly
70
- different for the root (top-level) module for which you should end up with the code similar to (notice ` NgxMaterialFaqModule .forRoot() ` ):
131
+ different for the root (top-level) module for which you should end up with the code similar to (notice ` MatFaqModule .forRoot() ` ):
71
132
``` js
72
- import { NgxMaterialFaqModule } from faq;
133
+ import { MatFaqModule } from ' @angular-material-extensions/ faq' ;
73
134
74
135
@NgModule ({
75
136
declarations: [AppComponent, ... ],
76
- imports: [NgxMaterialFaqModule .forRoot (), ... ],
137
+ imports: [MatFaqModule .forRoot (), ... ],
77
138
bootstrap: [AppComponent]
78
139
})
79
140
export class AppModule {
80
141
}
81
142
```
82
143
83
- Other modules in your application can simply import ` NgxMaterialFaqModule ` :
144
+ Other modules in your application can simply import ` MatFaqModule ` :
84
145
85
146
``` js
86
- import { NgxMaterialFaqModule } from ' @angular-material-extensions/faq' ;
147
+ import { MatFaqModule } from ' @angular-material-extensions/faq' ;
87
148
88
149
@NgModule ({
89
150
declarations: [OtherComponent, ... ],
90
- imports: [NgxMaterialFaqModule , ... ],
151
+ imports: [MatFaqModule , ... ],
91
152
})
92
153
export class OtherModule {
93
154
}
94
155
```
156
+ <a name =" usage " />
95
157
96
- ## Usage
158
+ ## (2) [ Usage] ( https://angular-material-extensions.github.io/faq/getting-started )
97
159
98
160
add the ` mat-faq ` or the ` mat-faq-admin ` element to your template:
99
161
@@ -104,7 +166,7 @@ add the `mat-faq` or the `mat-faq-admin` element to your template:
104
166
105
167
<p align =" center " >
106
168
<img alt="@angular-material-extensions/faq " style="text-align: center;"
107
- src="assets/demo-@ angular-material-extensions/ faq .png">
169
+ src="assets/demo-mat- faq.png">
108
170
</p >
109
171
110
172
``` html
@@ -142,7 +204,7 @@ asked question to the backend, firebase ... and so on..**
142
204
143
205
<p align =" center " >
144
206
<img alt="mat-faq-admin" style="text-align: center;"
145
- src="assets/demo-@ angular-material-extensions/ faq-admin .png">
207
+ src="assets/demo-mat- faq-admin.png">
146
208
</p >
147
209
148
210
``` html
@@ -169,12 +231,68 @@ export class HomeComponent implements OnInit {
169
231
170
232
}
171
233
```
234
+ <a name =" documentation " />
235
+
236
+ ## [ Documentation] ( https://angular-material-extensions.github.io/faq/doc/index.html )
237
+
238
+ Please checkout the full documentation [ here] ( https://anthonynahas.github.io/@angular-material-extensions/faq/doc/index.html )
239
+ or follow the official [ tutorial] ( https://anthonynahas.github.io/@angular-material-extensions/faq/getting-started )
240
+
241
+ <a name =" run-demo-app-locally " />
242
+
243
+ ## Run Demo App Locally
244
+
245
+ - [ clone this repo] ( https://github.com/angular-material-extensions/faq.git ) by running
246
+ ``` bash
247
+ $ git clone https://github.com/AnthonyNahas/ngx-auth-firebaseui.git
248
+ ```
249
+
250
+ - link the ** @angular-material-extensions/faq ** package
251
+ use gulp globally
252
+ ``` bash
253
+ $ gulp link
254
+ ```
255
+
256
+ use gulp locally
257
+ ``` bash
258
+ $ npx gulp link
259
+ ```
260
+ for some mac os users, you may use the sudo command with gulp
261
+ use gulp with sudo
262
+ ``` bash
263
+ $ sudo gulp link
264
+ ```
265
+ or locally
266
+ ``` bash
267
+ $ sudo npx gulp link
268
+ ```
172
269
173
- ### Please checkout the full documentation [ here] ( https://anthonynahas.github.io/@angular-material-extensions/faq/doc/index.html ) or follow the official [ tutorial] ( https://anthonynahas.github.io/@angular-material-extensions/faq/getting-started )
270
+ - navigate to the demo app directory
271
+ ``` bash
272
+ $ cd demo
273
+ ```
274
+
275
+ - install the dependencies
276
+ ``` bash
277
+ $ npm i
278
+ ```
279
+
280
+ - run/start/serve the app
281
+ ``` bash
282
+ $ npm run start
283
+ ```
284
+ or
285
+ ``` bash
286
+ $ ng serve --open
287
+ ```
288
+ - the app is now hosted by ` http://localhost:4200/ `
289
+
290
+
291
+ <a name =" development " />
174
292
175
293
## Development
176
294
177
- 1 . clone this [ repo] ( https://github.com/angular-material-extensions/faq )
295
+ 1 . clone this [ repo] ( https://github.com/angular-material-extensions/faq.git )
178
296
2 . Install the dependencies by running ` npm i `
179
297
3 . build the library ` npm run build ` or ` gulp build `
180
298
To generate all ` *.js ` , ` *.d.ts ` and ` *.metadata.json ` files:
@@ -198,17 +316,26 @@ To lint all `*.ts` files:
198
316
``` bash
199
317
$ npm run lint
200
318
```
201
-
319
+ < a name = " other-angular-libraries " />
202
320
203
321
## Other Angular Libraries
204
322
- [ ngx-auth-firebaseui] ( https://github.com/AnthonyNahas/ngx-auth-firebaseui )
205
323
- [ ngx-material-pages] ( https://github.com/AnthonyNahas/ngx-material-pages )
206
324
- [ ngx-material-password-strength] ( https://github.com/AnthonyNahas/ngx-material-password-strength )
207
- - [ ngx -material-contacts] ( https://github.com/AnthonyNahas/ngx -material-contacts )
325
+ - [ @ angular -material-extensions/ contacts] ( https://github.com/angular -material-extensions/ contacts )
208
326
- [ @angular-material-extensions/combination-generator ] ( https://github.com/angular-material-extensions/combination-generator )
209
327
328
+ <a name =" support " />
329
+
330
+ ## Support
331
+ + Drop an email to:
[ Anthony Nahas
] ( mailto:[email protected] )
332
+ + or open an appropriate [ issue] ( https://github.com/angular-material-extensions/faq/issues )
333
+ + let us chat on [ Gitter] ( https://gitter.im/angular-material-extensions/Lobby )
334
+
335
+ Built by and for developers :heart : we will help you :punch :
336
+
210
337
211
338
## License
212
339
213
- Copyright (c) 2018 anthonynahas . Licensed under the MIT License (MIT)
340
+ Copyright (c) 2018 [ Anthony Nahas ] ( https://github.com/AnthonyNahas ) . Licensed under the MIT License (MIT)
214
341
0 commit comments