| 
									
										
										
										
											2016-06-23 09:47:54 -07:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | import {__core_private__ as r, __core_private_types__ as t} from '@angular/core'; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-01 22:50:37 -07:00
										 |  |  | export var isDefaultChangeDetectionStrategy: typeof t.isDefaultChangeDetectionStrategy = | 
					
						
							|  |  |  |     r.isDefaultChangeDetectionStrategy; | 
					
						
							| 
									
										
										
										
											2016-06-27 20:00:30 -07:00
										 |  |  | export type ChangeDetectorStatus = t.ChangeDetectorStatus; | 
					
						
							|  |  |  | export var ChangeDetectorStatus: typeof t.ChangeDetectorStatus = r.ChangeDetectorStatus; | 
					
						
							| 
									
										
										
										
											2016-05-01 22:50:37 -07:00
										 |  |  | export var CHANGE_DETECTION_STRATEGY_VALUES: typeof t.CHANGE_DETECTION_STRATEGY_VALUES = | 
					
						
							|  |  |  |     r.CHANGE_DETECTION_STRATEGY_VALUES; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export var constructDependencies: typeof t.constructDependencies = r.constructDependencies; | 
					
						
							|  |  |  | export type LifecycleHooks = t.LifecycleHooks; | 
					
						
							|  |  |  | export var LifecycleHooks: typeof t.LifecycleHooks = r.LifecycleHooks; | 
					
						
							|  |  |  | export var LIFECYCLE_HOOKS_VALUES: typeof t.LIFECYCLE_HOOKS_VALUES = r.LIFECYCLE_HOOKS_VALUES; | 
					
						
							|  |  |  | export type ReflectorReader = t.ReflectorReader; | 
					
						
							|  |  |  | export var ReflectorReader: typeof t.ReflectorReader = r.ReflectorReader; | 
					
						
							| 
									
										
										
										
											2016-05-01 22:50:37 -07:00
										 |  |  | export var ReflectorComponentResolver: typeof t.ReflectorComponentResolver = | 
					
						
							|  |  |  |     r.ReflectorComponentResolver; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export type AppElement = t.AppElement; | 
					
						
							|  |  |  | export var AppElement: typeof t.AppElement = r.AppElement; | 
					
						
							| 
									
										
										
										
											2016-06-22 14:06:23 -07:00
										 |  |  | export var CodegenComponentFactoryResolver: typeof t.CodegenComponentFactoryResolver = | 
					
						
							|  |  |  |     r.CodegenComponentFactoryResolver; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export var AppView: typeof t.AppView = r.AppView; | 
					
						
							|  |  |  | export type DebugAppView<T> = t.DebugAppView<T>; | 
					
						
							|  |  |  | export var DebugAppView: typeof t.DebugAppView = r.DebugAppView; | 
					
						
							| 
									
										
										
										
											2016-06-28 09:54:42 -07:00
										 |  |  | export var AppModuleInjector: typeof t.AppModuleInjector = r.AppModuleInjector; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export type ViewType = t.ViewType; | 
					
						
							|  |  |  | export var ViewType: typeof t.ViewType = r.ViewType; | 
					
						
							|  |  |  | export var MAX_INTERPOLATION_VALUES: typeof t.MAX_INTERPOLATION_VALUES = r.MAX_INTERPOLATION_VALUES; | 
					
						
							|  |  |  | export var checkBinding: typeof t.checkBinding = r.checkBinding; | 
					
						
							| 
									
										
										
										
											2016-05-01 22:50:37 -07:00
										 |  |  | export var flattenNestedViewRenderNodes: typeof t.flattenNestedViewRenderNodes = | 
					
						
							|  |  |  |     r.flattenNestedViewRenderNodes; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export var interpolate: typeof t.interpolate = r.interpolate; | 
					
						
							|  |  |  | export var ViewUtils: typeof t.ViewUtils = r.ViewUtils; | 
					
						
							| 
									
										
										
										
											2016-05-01 22:50:37 -07:00
										 |  |  | export var VIEW_ENCAPSULATION_VALUES: typeof t.VIEW_ENCAPSULATION_VALUES = | 
					
						
							|  |  |  |     r.VIEW_ENCAPSULATION_VALUES; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export var DebugContext: typeof t.DebugContext = r.DebugContext; | 
					
						
							|  |  |  | export var StaticNodeDebugInfo: typeof t.StaticNodeDebugInfo = r.StaticNodeDebugInfo; | 
					
						
							|  |  |  | export var devModeEqual: typeof t.devModeEqual = r.devModeEqual; | 
					
						
							| 
									
										
										
										
											2016-07-07 16:35:13 -07:00
										 |  |  | export var UNINITIALIZED: typeof t.UNINITIALIZED = r.UNINITIALIZED; | 
					
						
							| 
									
										
										
										
											2016-04-28 17:50:03 -07:00
										 |  |  | export var ValueUnwrapper: typeof t.ValueUnwrapper = r.ValueUnwrapper; | 
					
						
							|  |  |  | export var TemplateRef_: typeof t.TemplateRef_ = r.TemplateRef_; | 
					
						
							|  |  |  | export type RenderDebugInfo = t.RenderDebugInfo; | 
					
						
							|  |  |  | export var RenderDebugInfo: typeof t.RenderDebugInfo = r.RenderDebugInfo; | 
					
						
							|  |  |  | export var createProvider: typeof t.createProvider = r.createProvider; | 
					
						
							|  |  |  | export var isProviderLiteral: typeof t.isProviderLiteral = r.isProviderLiteral; | 
					
						
							|  |  |  | export var EMPTY_ARRAY: typeof t.EMPTY_ARRAY = r.EMPTY_ARRAY; | 
					
						
							|  |  |  | export var EMPTY_MAP: typeof t.EMPTY_MAP = r.EMPTY_MAP; | 
					
						
							|  |  |  | export var pureProxy1: typeof t.pureProxy1 = r.pureProxy1; | 
					
						
							|  |  |  | export var pureProxy2: typeof t.pureProxy2 = r.pureProxy2; | 
					
						
							|  |  |  | export var pureProxy3: typeof t.pureProxy3 = r.pureProxy3; | 
					
						
							|  |  |  | export var pureProxy4: typeof t.pureProxy4 = r.pureProxy4; | 
					
						
							|  |  |  | export var pureProxy5: typeof t.pureProxy5 = r.pureProxy5; | 
					
						
							|  |  |  | export var pureProxy6: typeof t.pureProxy6 = r.pureProxy6; | 
					
						
							|  |  |  | export var pureProxy7: typeof t.pureProxy7 = r.pureProxy7; | 
					
						
							|  |  |  | export var pureProxy8: typeof t.pureProxy8 = r.pureProxy8; | 
					
						
							|  |  |  | export var pureProxy9: typeof t.pureProxy9 = r.pureProxy9; | 
					
						
							|  |  |  | export var pureProxy10: typeof t.pureProxy10 = r.pureProxy10; | 
					
						
							|  |  |  | export var castByValue: typeof t.castByValue = r.castByValue; | 
					
						
							|  |  |  | export type Console = t.Console; | 
					
						
							|  |  |  | export var Console: typeof t.Console = r.Console; | 
					
						
							| 
									
										
										
										
											2016-05-25 15:00:05 -07:00
										 |  |  | export var reflector: t.Reflector = r.reflector; | 
					
						
							| 
									
										
											  
											
												feat(browser): use AppModules for bootstrap in the browser
This introduces the `BrowserModule` to be used for long form
bootstrap and offline compile bootstrap:
```
@AppModule({
  modules: [BrowserModule],
  precompile: [MainComponent],
  providers: […], // additional providers
  directives: […], // additional platform directives
  pipes: […] // additional platform pipes
})
class MyModule {
  constructor(appRef: ApplicationRef) {
    appRef.bootstrap(MainComponent);
  }
}
// offline compile
import {bootstrapModuleFactory} from ‘@angular/platform-browser’;
bootstrapModuleFactory(MyModuleNgFactory);
// runtime compile long form
import {bootstrapModule} from ‘@angular/platform-browser-dynamic’;
bootstrapModule(MyModule);
```
The short form, `bootstrap(...)`, can now creates a module on the fly,
given `directives`, `pipes, `providers`, `precompile` and `modules`
properties.
Related changes:
- make `SanitizationService`, `SecurityContext` public in `@angular/core` so that the offline compiler can resolve the token
- move `AnimationDriver` to `platform-browser` and make it
  public so that the offline compiler can resolve the token
BREAKING CHANGES:
- short form bootstrap does no longer allow
  to inject compiler internals (i.e. everything 
  from `@angular/compiler). Inject `Compiler` instead.
  To provide custom providers for the compiler,
  create a custom compiler via `browserCompiler({providers: [...]})`
  and pass that into the `bootstrap` method.
											
										 
											2016-06-30 13:07:17 -07:00
										 |  |  | export var Reflector: typeof t.Reflector = r.Reflector; | 
					
						
							| 
									
										
										
										
											2016-05-25 15:00:05 -07:00
										 |  |  | export type Reflector = t.Reflector; | 
					
						
							| 
									
										
										
										
											2016-05-25 12:46:22 -07:00
										 |  |  | export type NoOpAnimationPlayer = t.NoOpAnimationPlayer; | 
					
						
							|  |  |  | export var NoOpAnimationPlayer: typeof t.NoOpAnimationPlayer = r.NoOpAnimationPlayer; | 
					
						
							|  |  |  | export type AnimationPlayer = t.AnimationPlayer; | 
					
						
							|  |  |  | export var AnimationPlayer: typeof t.AnimationPlayer = r.AnimationPlayer; | 
					
						
							|  |  |  | export type AnimationSequencePlayer = t.AnimationSequencePlayer; | 
					
						
							|  |  |  | export var AnimationSequencePlayer: typeof t.AnimationSequencePlayer = r.AnimationSequencePlayer; | 
					
						
							|  |  |  | export type AnimationGroupPlayer = t.AnimationGroupPlayer; | 
					
						
							|  |  |  | export var AnimationGroupPlayer: typeof t.AnimationGroupPlayer = r.AnimationGroupPlayer; | 
					
						
							|  |  |  | export type AnimationKeyframe = t.AnimationKeyframe; | 
					
						
							|  |  |  | export var AnimationKeyframe: typeof t.AnimationKeyframe = r.AnimationKeyframe; | 
					
						
							| 
									
										
										
										
											2016-05-31 09:15:17 -07:00
										 |  |  | export type AnimationStyles = t.AnimationStyles; | 
					
						
							| 
									
										
										
										
											2016-05-25 12:46:22 -07:00
										 |  |  | export var AnimationStyles: typeof t.AnimationStyles = r.AnimationStyles; | 
					
						
							|  |  |  | export var ANY_STATE = r.ANY_STATE; | 
					
						
							| 
									
										
										
										
											2016-06-03 17:52:33 -07:00
										 |  |  | export var DEFAULT_STATE = r.DEFAULT_STATE; | 
					
						
							| 
									
										
										
										
											2016-05-25 12:46:22 -07:00
										 |  |  | export var EMPTY_STATE = r.EMPTY_STATE; | 
					
						
							|  |  |  | export var FILL_STYLE_FLAG = r.FILL_STYLE_FLAG; | 
					
						
							| 
									
										
										
										
											2016-06-03 18:27:34 -07:00
										 |  |  | export var prepareFinalAnimationStyles: typeof t.prepareFinalAnimationStyles = | 
					
						
							|  |  |  |     r.prepareFinalAnimationStyles; | 
					
						
							| 
									
										
										
										
											2016-06-08 16:38:52 -07:00
										 |  |  | export var balanceAnimationKeyframes: typeof t.balanceAnimationKeyframes = | 
					
						
							|  |  |  |     r.balanceAnimationKeyframes; | 
					
						
							| 
									
										
										
										
											2016-05-31 09:15:17 -07:00
										 |  |  | export var flattenStyles: typeof t.flattenStyles = r.flattenStyles; | 
					
						
							|  |  |  | export var clearStyles: typeof t.clearStyles = r.clearStyles; | 
					
						
							|  |  |  | export var collectAndResolveStyles: typeof r.collectAndResolveStyles = r.collectAndResolveStyles; | 
					
						
							| 
									
										
										
										
											2016-06-03 14:59:42 -07:00
										 |  |  | export var renderStyles: typeof t.renderStyles = r.renderStyles; |