Created
July 8, 2018 20:06
-
-
Save arutnik/5d56178d858d1c951160be674f7a1f1d to your computer and use it in GitHub Desktop.
SEO-SPA: Server DI Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ElementFocusService } from './element-focus.service'; | |
| import { Injectable, ElementRef } from '@angular/core'; | |
| @Injectable() | |
| export class ElementFocusServerService extends ElementFocusService { | |
| constructor() { | |
| super(); | |
| } | |
| public focusElement(element: ElementRef) { | |
| //No-op on server | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment