Section | Video Links |
---|---|
Composite Pattern | |
Composite Use Case |
... Refer to Book or Design Patterns in TypeScript website to read textual content.
... Refer to Book or Design Patterns in TypeScript website to read textual content.
node ./dist/composite/composite-concept.js
<Leaf> name:leaf-b Parent: none
<Composite> name:comp-2 Parent: none Components:2
<Leaf> name:leaf-a Parent: comp-2
<Composite> name:comp-1 Parent: comp-2 Components:0
... Refer to Book or Design Patterns in TypeScript website to read textual content.
node ./dist/composite/client.js
<DIR> root
..<FILE> abc.txt
..<FILE> 123.txt
..<DIR> folder_a
....<FILE> xyz.txt
..<DIR> folder_b
....<FILE> 456.txt
<DIR> root
..<FILE> abc.txt
..<FILE> 123.txt
..<DIR> folder_b
....<FILE> 456.txt
....<DIR> folder_a
......<FILE> xyz.txt
... Refer to Book or Design Patterns in TypeScript website to read textual content.