K
K
Kaunov_ivan2015-09-06 12:07:37
Angular
Kaunov_ivan, 2015-09-06 12:07:37

Why doesn't routing work in Angular?

I'm running the product locally on OpenServer.
routes.js:

angular.module('aredodatel')
.config(function($routeProvider) {
  $routeProvider.when('offices.html', {
    templateUrl: '/templates/building.html'
  })
});

HTML:
...
<div class="col-md-9 one-height floor">
      <div ng-view></div>
</div>
.....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kaunov_ivan, 2015-09-07
@Kaunov_ivan

nothing in the console - here is the screen:
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
zolpol-2
09/07/15 11:47:53
Apache/2.2.29 (Win32)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question