diff options
author | Teddy Wing | 2015-01-25 17:34:05 -0500 |
---|---|---|
committer | Teddy Wing | 2015-01-25 17:34:05 -0500 |
commit | b75ef2c502bf0da050bd290a2ad1cc7aa0dcc408 (patch) | |
tree | bf3bb8b56a2f289aba5fe0d3467368279a7c87ad /app/assets/javascripts/notes.js | |
parent | 005e7cca168c6b4eeb06e314046f58b516c13aec (diff) | |
parent | 28e22a02c8c326df93093644d9de3fa71185ffe4 (diff) | |
download | Notes-angular-demo-b75ef2c502bf0da050bd290a2ad1cc7aa0dcc408.tar.bz2 |
Merge branch 'angular-app'
Conflicts:
app/assets/stylesheets/layouts/_global.scss
app/views/home/main.html.erb
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r-- | app/assets/javascripts/notes.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js new file mode 100644 index 0000000..9a92f3e --- /dev/null +++ b/app/assets/javascripts/notes.js @@ -0,0 +1,15 @@ +(function() { + angular + .module('nt.Notes', [ + 'nt.NoteService' + ]) + .controller('MainController', [ + '$scope', + 'NoteService', + function($scope, NoteService) { + $scope.noteService = NoteService; + + $scope.noteService.get_notes(); + } + ]); +})(); |