💾 Archived View for gmi.noulin.net › gitRepositories › moonjsExamples › file › conditionalRendering.… captured on 2024-07-09 at 02:33:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

moonjsExamples

Log

Files

Refs

README

conditionalRendering.html (283B)

     1 <body>
     2 <script src="https://unpkg.com/moonjs"></script>
     3 <div id="app5">
     4   <p m-if="condition">The Condition is True!</p>
     5 </div>
     6 <script>
     7 const app5 = new Moon({
     8   el: "#app5",
     9   data : {
    10     condition: true
    11   }
    12 });
    13 </script>
    14 <!-- in console: app5.set('condition', false) -->
    15 </body>