Section | Video Links |
---|---|
Template Method Pattern | |
Template Method 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/template-method/template-method-concept.js
Class_A : Step Two (overridden)
Step Three is a hook that prints this line by default.
Class_B : Step One (overridden)
Class_B : Step Two. (overridden)
Class_B : Step Three. (overridden)
... Refer to Book or Design Patterns in TypeScript website to read textual content.
node ./dist/template-method/client.js
----------------------
title : New Text Document
bg-col : white
text : Some Text
footer : -- Page 1 --
<html>
<head>
<title>New HTML Document</title>
<style>
body {
background-color: white;
}
</style>
</head>
<body>
<p>Line 1</p>
<p>Line 2</p>
</body>
</html>
... Refer to Book or Design Patterns in TypeScript website to read textual content.