11 lines
		
	
	
		
			310 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			310 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								// Exact copy of contact.awesome.pipe
							 | 
						||
| 
								 | 
							
								import { Pipe, PipeTransform } from '@angular/core';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@Pipe({ name: 'awesome' })
							 | 
						||
| 
								 | 
							
								/** Precede the input string with the word "Awesome " */
							 | 
						||
| 
								 | 
							
								export class AwesomePipe implements PipeTransform {
							 | 
						||
| 
								 | 
							
								  transform(phrase: string) {
							 | 
						||
| 
								 | 
							
								    return phrase ? 'Awesome ' + phrase : '';
							 | 
						||
| 
								 | 
							
								  }
							 | 
						||
| 
								 | 
							
								}
							 |