Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playground/playground.go
Original file line numberDiff line numberDiff line change
Expand Up@@ -19,7 +19,7 @@ type Line map[string]string
var output []Line

func main(){
app := angularjs.NewModule("playground", nil, nil)
app := angularjs.NewModule("playground", nil)

app.NewController("PlaygroundCtrl", func(scope *angularjs.Scope){
scope.Set("code", "package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/gopherjs/gopherjs/js\"\n)\n\nfunc main(){\n\tfmt.Println(\"Hello, playground\")\n\tjs.Global.Call(\"alert\", \"Hello, JavaScript\")\n\tprintln(\"Hello, JS console\")\n}\n")
Expand Down
Loading