64 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			64 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								<!DOCTYPE html>
							 | 
						||
| 
								 | 
							
								<html>
							 | 
						||
| 
								 | 
							
								<head>
							 | 
						||
| 
								 | 
							
								  <meta charset="utf-8">
							 | 
						||
| 
								 | 
							
								  <meta name="viewport" content="width=device-width, initial-scale=1">
							 | 
						||
| 
								 | 
							
								  <base href="/">
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  <title>
							 | 
						||
| 
								 | 
							
								    Setting The Document Title Using The Title Service
							 | 
						||
| 
								 | 
							
								  </title>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  <!-- #docregion style -->
							 | 
						||
| 
								 | 
							
								  <link rel="stylesheet" type="text/css" href="styles.css">
							 | 
						||
| 
								 | 
							
								  <link rel="stylesheet" type="text/css" href="sample.css">
							 | 
						||
| 
								 | 
							
								  <!-- #enddocregion style -->
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  <!-- IE required polyfills, in this exact order -->
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/es6-shim/es6-shim.min.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/systemjs/dist/system-polyfills.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/systemjs/dist/system.src.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/rxjs/bundles/Rx.js"></script>
							 | 
						||
| 
								 | 
							
								  <script src="node_modules/angular2/bundles/angular2.dev.js"></script>
							 | 
						||
| 
								 | 
							
								  <script>
							 | 
						||
| 
								 | 
							
								    // Configure our module loader.
							 | 
						||
| 
								 | 
							
								    System.config({
							 | 
						||
| 
								 | 
							
								      packages: {
							 | 
						||
| 
								 | 
							
								        app: {
							 | 
						||
| 
								 | 
							
								          format: "register",
							 | 
						||
| 
								 | 
							
								          defaultExtension: "js"
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								      }
							 | 
						||
| 
								 | 
							
								    });
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    // Load the root module (which will, in turn, bootstrap the Angular 2 application).
							 | 
						||
| 
								 | 
							
								    System
							 | 
						||
| 
								 | 
							
								      .import( "app/main" )
							 | 
						||
| 
								 | 
							
								      .then(
							 | 
						||
| 
								 | 
							
								        function handleSuccess() {
							 | 
						||
| 
								 | 
							
								          console.info( "System.js loaded your application module." );
							 | 
						||
| 
								 | 
							
								        },
							 | 
						||
| 
								 | 
							
								        function handleError( error ) {
							 | 
						||
| 
								 | 
							
								          console.warn( "System.js could not load your application module." );
							 | 
						||
| 
								 | 
							
								          console.error( error );
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								      );
							 | 
						||
| 
								 | 
							
								  </script>
							 | 
						||
| 
								 | 
							
								</head>
							 | 
						||
| 
								 | 
							
								<body>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  <h1>
							 | 
						||
| 
								 | 
							
								    Setting The Document Title Using The Title Service
							 | 
						||
| 
								 | 
							
								  </h1>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  <my-app>
							 | 
						||
| 
								 | 
							
								    Loading app...
							 | 
						||
| 
								 | 
							
								  </my-app>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								</body>
							 | 
						||
| 
								 | 
							
								</html>
							 |