From 77c7476bfa67eaaa0333d010dce94319dbdbeaa5 Mon Sep 17 00:00:00 2001 From: kabrunko-dev Date: Thu, 8 Feb 2024 18:11:06 -0300 Subject: [PATCH] docs(en): fit typo Also remove whitespaces before colons and add code highlight on word 'ng-container' --- .../docs/challenges/angular/3-directive-enhancement.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/content/docs/challenges/angular/3-directive-enhancement.md b/docs/src/content/docs/challenges/angular/3-directive-enhancement.md index 41a0cadb9..3f898609c 100644 --- a/docs/src/content/docs/challenges/angular/3-directive-enhancement.md +++ b/docs/src/content/docs/challenges/angular/3-directive-enhancement.md @@ -15,7 +15,7 @@ This exercice can feel obsolete with the new control flow and the empty block in ## Information -Directive is a very powerful tool only offered by the Angular framework. You can apply the DRY principal by having shared logic inside a directive and applying it to any component you want. +Directive is a very powerful tool only offered by the Angular framework. You can apply the DRY principle by having shared logic inside a directive and applying it to any component you want. But the real power is that you can enhance an already existing directive which moreover doesn't **belong** to you. @@ -23,7 +23,7 @@ But the real power is that you can enhance an already existing directive which m In this exercice, we have a want to display a list of persons. If the list is empty, you must display _" the list is empty !! "_. -Currently we have : +Currently we have: ```typescript @@ -34,7 +34,7 @@ Currently we have : The list is empty !! ``` -We want to get rid of the ng-container by writing : +We want to get rid of the `ng-container` by writing: ```typescript
@@ -43,4 +43,4 @@ We want to get rid of the ng-container by writing : The list is empty !! ``` -The goal is to **improve the ngFor directive** +The goal is to **improve the ngFor directive**.