Skip to content

Instantly share code, notes, and snippets.

@rquast
Created March 13, 2018 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rquast/d46a8a7c531cec97becb4a80ea600026 to your computer and use it in GitHub Desktop.
Save rquast/d46a8a7c531cec97becb4a80ea600026 to your computer and use it in GitHub Desktop.
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