Skip to content

Commit a2d8061

Browse files
michaelstalkerSophieDeBenedetto
authored andcommitted
LiveView workshop starting code
1 parent e070986 commit a2d8061

File tree

20 files changed

+1391
-1538
lines changed

20 files changed

+1391
-1538
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ erl_crash.dump
88
*.beam
99
/config/*.secret.exs
1010
/assets/node_modules
11+
.#*

assets/js/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ import "phoenix_html"
1414
// Import local files
1515
//
1616
// Local files can be imported directly using relative paths, for example:
17-
import socket from "./socket"
17+
import LiveSocket from "phoenix_live_view"
18+
19+
const liveSocket = new LiveSocket("/live")
20+
liveSocket.connect()

assets/js/socket.js

Lines changed: 0 additions & 113 deletions
This file was deleted.

assets/js/users.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)