13 lines
		
	
	
		
			321 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			321 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 
								 | 
							
								declare var angular:any;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								angular.module('heroApp', [])
							 | 
						||
| 
								 | 
							
								  .controller('MainCtrl', function() {
							 | 
						||
| 
								 | 
							
								    this.message = 'Hello world';
							 | 
						||
| 
								 | 
							
								  });
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								document.addEventListener('DOMContentLoaded', function() {
							 | 
						||
| 
								 | 
							
								  // #docregion bootstrap
							 | 
						||
| 
								 | 
							
								  angular.bootstrap(document.body, ['heroApp'], {strictDi: true});
							 | 
						||
| 
								 | 
							
								  // #enddocregion bootstrap
							 | 
						||
| 
								 | 
							
								});
							 |