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
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,30 +16,30 @@ sidebar:
16
16
17
17
## Information
18
18
19
-
Angular offer the static function [`ngTemplateContextGuard`](https://angular.io/guide/structural-directives#typing-the-directives-context) to strongly type structural directive.
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
23
## Statement
24
24
25
-
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`.
0 commit comments