Skip to content

Commit 651b058

Browse files
committed
Fixed HTML5 mode refresh on Apache server
run `bower-install`
1 parent 1168d8e commit 651b058

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

bower.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"dependencies": {
3232
"foundation-apps": "~1.2.0",
3333
"angular-slick": "^0.2.1",
34-
"what-input": "^3.0.0"
34+
"what-input": "^3.0.0",
35+
"angular-route": "^1.6.2"
3536
}
3637
}

client/assets/js/app.js

+29-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
angular.module('application', [
55
'ui.router',
66
'ngAnimate',
7+
'ngRoute',
78

89
//foundation
910
'foundation',
@@ -17,11 +18,37 @@
1718
.run(run)
1819
;
1920

20-
config.$inject = ['$urlRouterProvider', '$locationProvider'];
21+
config.$inject = ['$urlRouterProvider', '$locationProvider', '$routeProvider'];
2122

22-
function config($urlProvider, $locationProvider) {
23+
function config($urlProvider, $locationProvider, $routeProvider) {
2324
$urlProvider.otherwise('/');
2425

26+
$routeProvider
27+
.when('/spheric', {
28+
templateUrl: 'projects/spheric.html',
29+
})
30+
.when('/cinario', {
31+
templateUrl: 'projects/cinario.html',
32+
})
33+
.when('/the-road', {
34+
templateUrl: 'projects/road.html',
35+
})
36+
.when('/misadventures', {
37+
templateUrl: 'projects/misadventures.html',
38+
})
39+
.when('/reinventing-michael-banks', {
40+
templateUrl: 'projects/tmb.html',
41+
})
42+
.when('/will', {
43+
templateUrl: 'projects/will.html',
44+
})
45+
.when('/weddings', {
46+
templateUrl: 'projects/weddings.html',
47+
})
48+
.when('/about', {
49+
templateUrl: 'about.html',
50+
});
51+
2552
$locationProvider.html5Mode({
2653
enabled: true,
2754
requireBase: false

client/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<base href="/">
67
<title>Caroline L. Horn</title>
78
<meta name="description" content="I am a multidisciplinary designer and developer with over eight years experience. I am passionate about design, both aesthetically and functionally. I create digital experiences that are based on the needs of its users and are tailored to the goals of the client.">
89
<link rel="icon" href="./assets/img/favicon.ico" type="image/x-icon">

gulpfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ var paths = {
3939
'bower_components/hammerjs/hammer.js',
4040
'bower_components/angular/angular.js',
4141
'bower_components/angular-animate/angular-animate.js',
42+
'bower_components/angular-route/angular-route.js',
4243
'bower_components/angular-ui-router/release/angular-ui-router.js',
4344
'!bower_components/foundation-apps/js/vendor/**/*.js',
4445
'bower_components/foundation-apps/js/angular/**/*.js',

0 commit comments

Comments
 (0)