Skip to content

Commit

Permalink
fix: added JS imports declaration (#40)
Browse files Browse the repository at this point in the history
script imported as module

EDIT: minor clean-up while rebasing to resolve comflicts in order to accept PR \#40
  • Loading branch information
Rizaaal authored Jan 20, 2024
1 parent b9634e7 commit df187c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion registri.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
crossorigin="anonymous"
></script>
<script src="script.js"></script>
<script src="view.js" defer></script>
<script type="module" src="view.js" defer></script>
</head>
<body>
<header>
Expand Down
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,5 @@ const getStudent = (id) => {
// getRegister,
// getStudent
// };

export { registers };
1 change: 1 addition & 0 deletions view.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// File per modificare il Prensentation Layer (aka aggire sull' HTML modificando il DOM)
import { registers } from "./script.js";

const notImplemented = () => {
alert("Not Implemented Yet");
Expand Down

0 comments on commit df187c3

Please sign in to comment.