Skip to content

Commit 93ecbd3

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

File tree

18 files changed

+1390
-1386
lines changed

18 files changed

+1390
-1386
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()

0 commit comments

Comments
 (0)