23/11/2017 Development / angular

In angular1 we use 

$locationProvider.html5Mode({
  enabled: true,
  requireBase: false
});
<head>
  <base href="/">
  ...
</head>

In angular 5

import in -> app.module.ts

import {APP_BASE_HREF} from '@angular/common';

and include in yours providers

providers: [{provide: APP_BASE_HREF, useValue: '/'}]

thats great!