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
In einem Land, von Mythen umwoben, | |
Lebt’ ein Mann, von Legenden erhoben. | |
Pepp, der kühne Bergsteiger, | |
Im Herzen stets ein wilder Streiter. | |
Mit Rüstung aus Mut und festem Schuh, | |
Erklomm er Gipfel, steil und hoch dazu. | |
Doch nicht nur Stärke war sein Freund, | |
Auch Pülverchen, die ihm das Glück verleiht’. |
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
@Pipe({ | |
name: "sortDescending" | |
}) | |
export class SortDescendingPipe implements PipeTransform { | |
transform(list: any[], ...args: any[]): any[] { | |
return list.slice().sort((elem1, elem2) => elem2.rollNo - elem1.rollNo); | |
} | |
} |
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
export class TrashComponent implements OnInit, OnDestroy { | |
const subscription: Subscription; | |
constructor(private service: TrashService) { } | |
ngOnInit() { | |
this.store.dispatch(new UsersActions.Load()); | |
this.subscription = this.service.subscribe(greetings => console.log(greetings)); | |
} | |
ngOnDestroy() { |