// #docplaster // #docregion import { Component } from '@angular/core'; import { provideRouter, ROUTER_DIRECTIVES } from '@angular/router'; import { routes } from './app.routes'; // #docregion can-deactivate-guard import { CanDeactivateGuard } from './interfaces'; // #enddocregion can-deactivate-guard import { DialogService } from './dialog.service'; import { HeroService } from './heroes/hero.service'; // Add these symbols to override the `LocationStrategy` import { LocationStrategy, HashLocationStrategy } from '@angular/common'; @Component({ selector: 'my-app', // #docregion template template: `