aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/layouts/application.html.erb
diff options
context:
space:
mode:
authorTeddy Wing2015-01-24 09:41:57 -0500
committerTeddy Wing2015-01-24 09:41:57 -0500
commitc764e3b3964e137038b964c44b0b736828478868 (patch)
tree9c26044cfbedf6c8b5885a9a130540b456dc4b57 /app/views/layouts/application.html.erb
parentac4ca71de63bc3ab75b520cfe382040926079982 (diff)
downloadNotes-angular-demo-c764e3b3964e137038b964c44b0b736828478868.tar.bz2
Create initial Notes Angular app
Lists all notes and populates content section with the body of a note when one is clicked.
Diffstat (limited to 'app/views/layouts/application.html.erb')
-rw-r--r--app/views/layouts/application.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 2b9affc..ca57c37 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -1,12 +1,12 @@
<!DOCTYPE html>
-<html>
+<html ng-app="nt.Notes">
<head>
<title>Notes</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
-<body>
+<body ng-controller="MainController">
<%= yield %>