From 58b21808adc73abde2177190703d7fc39ad13ccb Mon Sep 17 00:00:00 2001 From: rnlee0054 Date: Sun, 17 May 2015 01:36:09 -0700 Subject: [PATCH] Rename review to study front-end style --- config.js | 10 +++++----- scripts/ReviewController.js | 8 -------- scripts/StudyController.js | 8 ++++++++ templates/review.html | 9 --------- templates/study.html | 9 +++++++++ 5 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 scripts/ReviewController.js create mode 100644 scripts/StudyController.js delete mode 100644 templates/review.html create mode 100644 templates/study.html diff --git a/config.js b/config.js index f29a20f..34422a1 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,7 @@ angular.module('flashy', [ 'flashy.DeckController', 'flashy.ClassAddController', 'flashy.RequestResetController', - 'flashy.ReviewController', + 'flashy.StudyController', 'flashy.UserService', 'flashy.FlashcardDirective', 'flashy.ResetPasswordController', @@ -52,10 +52,10 @@ angular.module('flashy', [ templateUrl: 'templates/deck.html', controller: 'DeckController' }). - state('review', { - url: '/review', - templateUrl: 'templates/review.html', - controller: 'ReviewController' + state('study', { + url: '/study', + templateUrl: 'templates/study.html', + controller: 'StudyController' }). state('flashcard', { url: '/flashcard', diff --git a/scripts/ReviewController.js b/scripts/ReviewController.js deleted file mode 100644 index 674dab5..0000000 --- a/scripts/ReviewController.js +++ /dev/null @@ -1,8 +0,0 @@ -angular.module('flashy.ReviewController', ['ui.router']). - -controller('ReviewController', ['$scope', '$state', - function($scope, $state) { - console.log("hello from review controller"); - $scope.htmlContent = 'hello there from js review ctrl'; - } -]); diff --git a/scripts/StudyController.js b/scripts/StudyController.js new file mode 100644 index 0000000..44fef68 --- /dev/null +++ b/scripts/StudyController.js @@ -0,0 +1,8 @@ +angular.module('flashy.StudyController', ['ui.router']). + +controller('StudyController', ['$scope', '$state', + function($scope, $state) { + console.log("hello from review controller"); + $scope.htmlContent = 'hello there from js review ctrl'; + } +]); diff --git a/templates/review.html b/templates/review.html deleted file mode 100644 index c6de7b2..0000000 --- a/templates/review.html +++ /dev/null @@ -1,9 +0,0 @@ -
- Hello
- 1. Get card from server.
- 2. Show card
- 3. Inputs
- 4. Compare answers
- 5. User decides for correct/incorrect
- -
diff --git a/templates/study.html b/templates/study.html new file mode 100644 index 0000000..c6de7b2 --- /dev/null +++ b/templates/study.html @@ -0,0 +1,9 @@ +
+ Hello
+ 1. Get card from server.
+ 2. Show card
+ 3. Inputs
+ 4. Compare answers
+ 5. User decides for correct/incorrect
+ +
-- 1.9.1