From a46b9eb1a98f87b6eb98b1b476edf909121b9f52 Mon Sep 17 00:00:00 2001 From: thomas laforge Date: Mon, 21 Nov 2022 21:13:31 +0100 Subject: [PATCH] feat(challenge6): readme --- apps/permissions/README.md | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/apps/permissions/README.md b/apps/permissions/README.md index 09d86a8..4b87512 100644 --- a/apps/permissions/README.md +++ b/apps/permissions/README.md @@ -1,21 +1,42 @@ -

Permissions

- - > Author: Thomas Laforge - - ### Information +Structural directive is an important concept you will need to master to improve your angular skills and knowledge. This will be the first part of this challenge. + +Guard is also very important since you will always need it in every application you build. + ### Statement +In LoginComponent, you will find 6 buttons corresponding at 6 differents users. + +- Admin +- Manager +- Reader +- Writer +- Reader and Writer +- Client + ### Step 1 +In **InformationComponent**, display the correct piece of information for each roles. + +#### Constraints: + +- no ngIf directive inside **InformationComponent** +- importing the store inside **InformationComponent** is not allowed. + +You should end up with something like below: + +```html +
Info for Manager
+``` + ### Step 2 -### Constraints: +In **Routes.ts**, route all user to the correct DashboardComponent using CanMatch guard. ### Submitting your work @@ -27,13 +48,10 @@ 6. Commit your work 7. Submit a PR with a title beginning with **Answer:6** that I will review and other dev can review. - - permissions - - +_You can ask any question on_ twitter