You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/content/docs/challenges/angular/4-context-outlet-typed.md
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,13 @@ sidebar:
16
16
17
17
## Information
18
18
19
-
You can improve template type checking for custom directives by adding template guard properties to your directive definition. Angular offer the static function [`ngTemplateContextGuard`](https://angular.io/guide/structural-directives#typing-the-directives-context) to strongly type structural directives.
19
+
You can improve template type checking for custom directives by adding template guard properties to your directive definition. Angular offers the static function [`ngTemplateContextGuard`](https://angular.io/guide/structural-directives#typing-the-directives-context) to strongly type structural directives.
20
20
21
21
However the context of **NgTemplateOutlet** type is **Object**. But with the help of the above guard, we can improve that behavior.
22
22
23
-
If you’re not very familiar with `ngTemplateOutlet`, check out this article.
24
-
25
-
-[NgTemplateOutlet Type Checking](https://medium.com/@thomas.laforge/ngtemplateoutlet-type-checking-5d2dcb07a2c6)
26
-
27
23
## Statement
28
24
29
-
In this exercise we want to learn how to strongly type our `ng-template` in our `AppComponent`.
25
+
In this exercise, we want to learn how to strongly type our `ng-template` in our `AppComponent`.
30
26
31
27
This exercise has two levels of complexity.
32
28
@@ -36,14 +32,14 @@ Currently we have the following piece of code.
0 commit comments