-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathAngular_notes_ep_15.txt
More file actions
46 lines (33 loc) · 1.01 KB
/
Copy pathAngular_notes_ep_15.txt
File metadata and controls
46 lines (33 loc) · 1.01 KB
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
42
43
44
45
46
Episode #15
Communication between various Angular components
Contacts -> Module
contact-listing -> parent component
contact-grid -> child component
contact-tools -> child component
download-pdf -> sub-child component
download-excel
Leads -> Module
leads-listing -> parent component
Components are hierarchial
Parent-child relationship
p1
child1
sub-child1
child2
p2
p2-child1
1. Communications between the related components
parent component -> child components
@Input
parent components <- child components
@Output
Leads Module
leads-listing
leads-grid
leads-tools
download-excel
download-pdf
2. communication between totally unrealted components
Component1 -> Services <- Component2
services
is a common reusable piece of functionality shared between different components