From e749d694b1b65fec52e5d99b50ef43a8c5ab8a57 Mon Sep 17 00:00:00 2001
From: oabdelnour <oabdelnour@takima.fr>
Date: Tue, 27 Feb 2024 15:11:33 +0100
Subject: [PATCH] wip

---
 resources/docs/docs/chapters/tp/bundle2.md | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/resources/docs/docs/chapters/tp/bundle2.md b/resources/docs/docs/chapters/tp/bundle2.md
index 1cf57af..34cfd5b 100644
--- a/resources/docs/docs/chapters/tp/bundle2.md
+++ b/resources/docs/docs/chapters/tp/bundle2.md
@@ -43,3 +43,53 @@ After this chapter, thanks to the _ES modules_, there will be no more imported f
     - Remove the _IIFE_
     - Write an `export` statement to export the component's function.
     - Write an `import` statement to import the `parseUrl` function if required.
+
+??? note "Show the resulting files"
+
+    === "welcome.js"
+
+        ```js linenums="1"
+        export function WelcomeComponent() {}
+
+        /* method WelcomeComponent.init */
+        WelcomeComponent.prototype.init = function init() {
+          // ...
+        };
+
+        // ...
+        ```
+    === "game.js"
+
+        ```js linenums="1"
+        import { parseUrl } from "./utils";
+
+        var environment = {
+          api: {
+            host: "http://localhost:8081",
+          },
+        };
+
+        export function GameComponent() {
+          // ...
+        }
+
+        /* method GameComponent.init */
+        GameComponent.prototype.init = function init() {
+          // ...
+        };
+        // ...
+        ```
+
+    === "score.js"
+
+        ```js linenums="1"
+        import { parseUrl } from "./utils";
+
+        export function ScoreComponent() {
+          // ...
+        }
+        // ...
+        ```
+
+     
+
-- 
GitLab