Мой ngroute работает на моей домашней странице, однако, когда я нажимаю на ссылку, чтобы перейти на мою образовательную страницу, она запускается, а не запускается .what('/education... и показывает правильный templateUrl
home.html
<div class="main">
<div class="container">
<div ng-view></div>
app.js
var app = angular.module('Danielle', ['ngRoute']);
app.config(function($routeProvider){
$routeProvider
.when('/',{
controller:'HomeController',
templateUrl:'views/homepage.html'
})
.when('/education',{
templateUrl:'views/education.html'
})
.otherwise({
redirectTo: '/'
});
});
домашняя страница.html
<style>
body{
background: url(/img/3kzlcl3rj8a-ricardo-gomez-angel.jpg) no-repeat center center fixed;
background-size: cover;
}
</style>
<div class="jumbotron">
<h1>Danielle Zurek</h1>
<a href="#/education.html">
<div class="education">
<div class="row">
<h2>Education</h2>
</div>
</a>
</div>
</div>
education.html
<style>
body{
background: url(/img/grads.jpg) no-repeat center center;
background-size: cover;
}
</style>
<div class="jumbotron">
<h1>Education</h1>
</div>
<a href="#/education.html">
должна была быть<a href="#/education">
- person Jacob Rusoff   schedule 08.02.2017