- fixes wrapping for object literal keys called `template`. - spacing in destructuring expressions. - changes to keep trailing return types of functions closer to their function declaration. - better formatting of string literals. Closes #4828
		
			
				
	
	
		
			30 lines
		
	
	
		
			1000 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1000 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
// Public API for Application
 | 
						|
import {Provider} from './di';
 | 
						|
import {Type, isPresent} from 'angular2/src/core/facade/lang';
 | 
						|
import {Promise} from 'angular2/src/core/facade/async';
 | 
						|
import {compilerProviders} from 'angular2/src/core/compiler/compiler';
 | 
						|
import {commonBootstrap} from './application_common';
 | 
						|
import {ComponentRef} from './linker/dynamic_component_loader';
 | 
						|
 | 
						|
export {APP_COMPONENT, APP_ID} from './application_tokens';
 | 
						|
export {platform} from './application_common';
 | 
						|
export {
 | 
						|
  PlatformRef,
 | 
						|
  ApplicationRef,
 | 
						|
  applicationCommonProviders,
 | 
						|
  createNgZone,
 | 
						|
  platformCommon,
 | 
						|
  platformProviders
 | 
						|
} from './application_ref';
 | 
						|
 | 
						|
/// See [commonBootstrap] for detailed documentation.
 | 
						|
export function bootstrap(
 | 
						|
    appComponentType: /*Type*/ any,
 | 
						|
    appProviders: Array<Type | Provider | any[]> = null): Promise<ComponentRef> {
 | 
						|
  var providers = [compilerProviders()];
 | 
						|
  if (isPresent(appProviders)) {
 | 
						|
    providers.push(appProviders);
 | 
						|
  }
 | 
						|
  return commonBootstrap(appComponentType, providers);
 | 
						|
}
 |