-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.txt
41 lines (31 loc) · 899 Bytes
/
info.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
- primeflex
- material-icons
- google fonts
- angular animations
- rxjs
- primeng (paginator)
Run the app
> ng serve
Create a new component
> ng g component shared/footer
Component HTML:
Set structure
> <pre> </pre>
Using pipe to display json format:
> <pre> {{ movies | json }} </pre>
Setting a datatype (typescript):
> varibaleName: any
Installing angular animations:
> npm install @angular/animations
Install prime flex
> npm install primeflex
Install Prime NG
> npm install primeng --save
> npm install primeicons --save
> npm install @angular/cdk --save
Components:
> ngOnInit() -> initializing of component
> ngOnDestroy() -> when component destroyed
to destroy when using subscribe():
> this.route.params.pipe(first()).subscribe(({ id }) => {}
> with httpclient we dont need to destroy, it does it automatically