diff --git a/config.js b/config.js index 5b0c188..4388e21 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,9 @@ angular.module('flashy', [ 'flashy.DeckController', 'flashy.ClassAddController', 'flashy.RequestResetController', + 'flashy.ReviewController', 'flashy.UserService', + 'flashy.FlashcardDirective', 'ngCookies']). config(['$stateProvider', '$urlRouterProvider', '$httpProvider', '$locationProvider', @@ -48,6 +50,16 @@ angular.module('flashy', [ templateUrl: 'templates/deck.html', controller: 'DeckController' }). + state('review', { + url: '/review', + templateUrl: 'templates/review.html', + controller: 'ReviewController' + }). + state('flashcard', { + url: '/flashcard', + templateUrl: 'templates/flashcard.html', + controller: 'FlashcardController' + }). state('requestpasswordreset', { url: '/requestpasswordreset', templateUrl: 'templates/requestpasswordreset.html', diff --git a/home.html b/home.html index ce211b6..1f320a2 100644 --- a/home.html +++ b/home.html @@ -22,6 +22,7 @@ + @@ -29,7 +30,15 @@ + + + + + + + + diff --git a/scripts/FlashcardDirective.js b/scripts/FlashcardDirective.js new file mode 100644 index 0000000..c69effd --- /dev/null +++ b/scripts/FlashcardDirective.js @@ -0,0 +1,11 @@ +angular.module('flashy.FlashcardDirective', []). + +directive('flashcard', function() { + return { + templateUrl: '/app/templates/flashcard.html', + restrict: 'E', + link: function() { + console.log("HELLO FROM FLASHCARD DIRECTIVE"); + } + }; +}); diff --git a/scripts/ReviewController.js b/scripts/ReviewController.js new file mode 100644 index 0000000..76013d5 --- /dev/null +++ b/scripts/ReviewController.js @@ -0,0 +1,7 @@ +angular.module('flashy.ReviewController', ['ui.router']). + +controller('ReviewController', ['$scope', '$state', + function($scope, $state) { + console.log("hello from review controller"); + } +]); diff --git a/templates/flashcard.html b/templates/flashcard.html new file mode 100644 index 0000000..f4c8bde --- /dev/null +++ b/templates/flashcard.html @@ -0,0 +1,17 @@ +