mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
	
	
		
			11 lines
		
	
	
		
			260 B
		
	
	
	
		
			TypeScript
		
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			260 B
		
	
	
	
		
			TypeScript
		
	
	
	
| 
								 | 
							
								import coreModule from 'app/core/core_module';
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								export function react2AngularDirective(name: string, component: any, options: any) {
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  coreModule.directive(name, ['reactDirective', reactDirective => {
							 | 
						||
| 
								 | 
							
								    return reactDirective(component, options);
							 | 
						||
| 
								 | 
							
								  }]);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 |