Skip to content

Commit 09273b6

Browse files
committed
'test' pages connected to controllers
1 parent 6a8ce49 commit 09273b6

30 files changed

+505
-488
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ gulp.task('styles', function() { // .scss is newer file version of .sass
2222
});
2323

2424
gulp.task('javascript', function() {
25-
gulp.src(['./main/**/**/*.js', '!./main/jquery.js'])
25+
gulp.src(['./main/**/*.js', '!./main/jquery.js'])
2626
.pipe(ngAnnotate())
2727
// .pipe(uglify())
2828
.pipe(concat('all.js'))

main/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ angular.module('myApp', ['ui.router'])
2020
.state('lessonTests', {
2121
url: '/lessonTests',
2222
templateUrl: './html/lessonTests/lessonTestsTemplate.html'
23-
// controller: 'lessonTestsController'
2423
})
2524
.state('assessment', {
2625
url: '/assessment',
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular.module('myApp')
2+
3+
.directive('jsArraysDirectives', function() {
4+
return {
5+
restrict: 'A',
6+
controller: 'lessonTestsController',
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-arrays.html'
8+
}
9+
}) // end jsArraysDirectives
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular.module('myApp')
2+
3+
.directive('jsConditionalDirective', function() {
4+
return {
5+
restrict: 'A',
6+
controller: 'lessonTestsController',
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-conditional.html'
8+
}
9+
}) // end jsConditionalDirective

main/lessonTests/lessonFiles/js-lesson-numbers.html renamed to main/lessonTests/lessonFiles/js-lesson-data-types.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="lesson-tests-wrapper">
22

3-
<section class="lessonTests" ng-controller="lessonTestsController">
4-
<h2>JavaScript<br>Numbers<br>Test</h2>
3+
<section class="lessonTests">
4+
<h2>JavaScript<br>Data Types<br>Test</h2>
55
<div class="multiple-choice-wrapper">
66
<div class="quiz-options"><span class="test-question">1. Here's where we will put a question:</span><br>
77
<button>one</button>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular.module('myApp')
2+
3+
.directive('jsDatatypesDirective', function() {
4+
return {
5+
restrict: 'A',
6+
controller: 'lessonTestsController',
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-data-types.html'
8+
}
9+
}) // end dataTypesDirective
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular.module('myApp')
2+
3+
.directive('jsFunctionsDirective', function() {
4+
return {
5+
restrict: 'A',
6+
controller: 'lessonTestsController',
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-functions.html'
8+
}
9+
}) // end varsTestDirective
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular.module('myApp')
2+
3+
.directive('jsIteratorsDirective', function() {
4+
return {
5+
restrict: 'A',
6+
controller: 'lessonTestsController',
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-iterators.html'
8+
}
9+
}) // end varsTestDirective
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
angular.module('myApp')
22

3-
.directive('varsTestDirective', function() {
3+
.directive('jsLogicalDirective', function() {
44
return {
55
restrict: 'A',
66
controller: 'lessonTestsController',
7-
templateUrl: './html/lessonTests/lessonFiles/js-lesson-vars.html'
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-logical.html'
88
}
99
}) // end varsTestDirective
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
angular.module('myApp')
2+
3+
.directive('jsObjectsDirective', function() {
4+
return {
5+
restrict: 'A',
6+
controller: 'lessonTestsController',
7+
templateUrl: './html/lessonTests/lessonFiles/js-lesson-objects.html'
8+
}
9+
}) // end varsTestDirective

0 commit comments

Comments
 (0)