Skip to content

Commit b0ab9d1

Browse files
committed
docs(docs):rework flow school
1 parent d1a36ee commit b0ab9d1

File tree

9 files changed

+44
-44
lines changed

9 files changed

+44
-44
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<!-- .slide: class="transition" -->
22

3-
# Angular Renaissance: Control flow
3+
# Control flow

docs/markdown/control-flow/conditional_flow.md renamed to docs/markdown/control-flow/01-INTRODUCTION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ng generate @angular/core:control-flow
149149

150150
# Benefits of the new syntax
151151

152-
- **Clearer and more intuitive**: The syntax is closer to native JavaScript control flow.
153-
- **No more microsyntax**: Eliminates the complex grammar of `let`, `as`, and `of`.
154-
- **Improved type checking**: The compiler can better infer types within the blocks.
152+
- **Clearer and more intuitive**: The syntax is closer to native JavaScript control flow. <br/><br/>
153+
- **No more microsyntax**: Eliminates the complex grammar of `let`, `as`, and `of`. <br/><br/>
154+
- **Improved type checking**: The compiler can better infer types within the blocks. <br/><br/>
155155
- **Built-in**: Control flow is part of the core framework, no need to import `CommonModule` for `@if`, `@for`, etc.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!-- .slide: class="exercice" -->
2+
3+
# Lab 14: 14-control-flow
4+
5+
## Lab
6+
7+
<b>A readme is available in the apps/14-control-flow folder</b>
8+
9+
##==##
10+
11+
<!-- .slide: class="exercice full-center" -->
12+
13+
# Lab 14: 14-control-flow
14+
15+
## Lab
16+
17+
<b>apps/14-control-flow-solution</b>

docs/markdown/directive/100-LAB.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
<!-- .slide: class="exercice" -->
2-
3-
# Lab 14: 14-control-flow
4-
2+
# Lab 15: 15-directive-custom
53
## Lab
6-
7-
<b>A readme is available in the apps/14-control-flow folder</b>
4+
<b>A readme is available in the apps/15-directive-custom folder</b>
85

96
##==##
10-
11-
<!-- .slide: class="exercice full-center" -->
12-
13-
# Lab 14: 14-control-flow
14-
7+
8+
<!-- .slide: class="full-center exercice" -->
9+
# Lab 15: 15-directive-custom
1510
## Lab
16-
17-
<b>apps/14-control-flow-solution</b>
11+
<b>apps/15-directive-custom-solution</b>

docs/markdown/directive/101-LAB.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<!-- .slide: class="exercice" -->
2-
# Lab 15: 15-directive-custom
2+
# Lab 26: 26-hostbinding-hostlistener
33
## Lab
4-
<b>A readme is available in the apps/15-directive-custom folder</b>
4+
5+
<br><br>
6+
7+
<b>A readme is available in the apps/26-hostbinding-hostlistener folder</b>
58

69
##==##
7-
10+
811
<!-- .slide: class="full-center exercice" -->
9-
# Lab 15: 15-directive-custom
12+
# Lab 26: 26-hostbinding-hostlistener
1013
## Lab
11-
<b>apps/15-directive-custom-solution</b>
14+
__apps/26-hostbinding-hostlistener-solution__
File renamed without changes.

docs/markdown/directive/103-LAB.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/scripts/day_three.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function hostDirectivesSlides() {
5252
`${DIRECTIVE}/03-HOST-BINDING-LISTENER.md`,
5353
`${DIRECTIVE}/04-HOST-BINDING.md`,
5454
`${DIRECTIVE}/05-HOST-LISTENER.md`,
55-
`${DIRECTIVE}/103-LAB.md`,
55+
`${DIRECTIVE}/101-LAB.md`,
5656
];
5757
}
5858

@@ -63,7 +63,7 @@ function structuralDirectiveSlides() {
6363
`${DIRECTIVE}/06-STRUCTURAL-TRANSITION-SLIDE.md`,
6464
`${DIRECTIVE}/07-STRUCTURAL-DEFINITION.md`,
6565
`${DIRECTIVE}/08-STRUCTURAL-PROVIDERS.md`,
66-
`${DIRECTIVE}/104-LAB.md`,
66+
`${DIRECTIVE}/102-LAB.md`,
6767
];
6868
}
6969

docs/scripts/day_two.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ function pipeSlides() {
2525
];
2626
}
2727

28+
function controlFlowSlides() {
29+
const CONTROL_FLOW = 'control-flow';
30+
return [`${CONTROL_FLOW}/00-TRANSITION-SLIDE.md`, `${CONTROL_FLOW}/01-INTRODUCTION.md`, `${CONTROL_FLOW}/100-LAB.md`];
31+
}
32+
2833
function directiveSlides() {
2934
const DIRECTIVE = 'directive';
30-
return [
31-
`${DIRECTIVE}/00-TRANSITION-SLIDE.md`,
32-
`${DIRECTIVE}/01-CONTROL-FLOW.md`,
33-
`${DIRECTIVE}/100-LAB.md`,
34-
`${DIRECTIVE}/02-CUSTOM-DIRECTIVE.md`,
35-
`${DIRECTIVE}/101-LAB.md`,
36-
];
35+
return [`${DIRECTIVE}/00-TRANSITION-SLIDE.md`, `${DIRECTIVE}/02-CUSTOM-DIRECTIVE.md`, `${DIRECTIVE}/100-LAB.md`];
3736
}
3837

3938
function templateDrivenForms() {
@@ -65,6 +64,7 @@ export function dayTwoSlides() {
6564
...providersSlide(),
6665
...dependencyInjectionSlides(),
6766
...pipeSlides(),
67+
...controlFlowSlides(),
6868
...directiveSlides(),
6969
...templateDrivenForms(),
7070
...reactiveFormSlides(),

0 commit comments

Comments
 (0)