export class SlugHistory { history : Array < string > ; constructor ( ) { } getHistory ( ) { return this . history ; } addToHistory ( slug ) { if ( this . history . includes ( slug ) ) return ; this . history . push ( slug ) ; } clearHistory ( ) { this . history = new Array < string > ( ) ; } }