aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-02-03 21:26:16 +0100
committerTeddy Wing2017-02-03 21:26:16 +0100
commit75c818e34328b38fdd7fd143b17663c00846cc80 (patch)
tree0d76374cde5c407d14e23b8350108c59c2aad5bb
parent21d734fc8047ea2a228cb7c951e0f966d20b8ff7 (diff)
downloadAngular-tutorial-75c818e34328b38fdd7fd143b17663c00846cc80.tar.bz2
application.html.erb: Declare ngApp
Set ngApp on the `<html>` attribute of the layout template. Calling it "Notes" since this is a note app. Using the `n` prefix to separate/namespace application/project modules from other included modules.
-rw-r--r--app/views/layouts/application.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 26a30ae..53c091b 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html ng-app="n.Notes">
<head>
<title>NotesApp</title>
<%= csrf_meta_tags %>