Created
March 13, 2018 11:22
-
-
Save rquast/d46a8a7c531cec97becb4a80ea600026 to your computer and use it in GitHub Desktop.
This file contains 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 {inject} from 'aurelia-framework'; | |
import SsrTransformer from './ssr-transformer'; | |
@inject(SsrTransformer) | |
export class TransformerStep { | |
constructor(transformer) { | |
this.transformer = transformer; | |
} | |
run(navigationInstruction, next) { | |
this.transformer.mutate(navigationInstruction.config); | |
return next(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment