├── .gitignore ├── .idea ├── .name ├── encodings.xml ├── inspectionProfiles │ ├── Project_Default.xml │ └── profiles_settings.xml ├── jsLibraryMappings.xml ├── misc.xml ├── modules.xml ├── starter.iml ├── typescript-compiler.xml ├── vcs.xml └── workspace.xml ├── .vscode └── tasks.json ├── LICENSE ├── aot ├── app │ ├── app.component.ngfactory.ts │ ├── app.module.ngfactory.ts │ ├── flug │ │ ├── flug-buchen │ │ │ └── flug-buchen.component.ngfactory.ts │ │ ├── flug-edit │ │ │ └── flug-edit.component.ngfactory.ts │ │ ├── flug-suchen │ │ │ ├── flug-suchen.component.css.shim.ts │ │ │ └── flug-suchen.component.ngfactory.ts │ │ ├── flug.module.ngfactory.ts │ │ └── passagier-suchen │ │ │ └── passagier.suchen.component.ngfactory.ts │ └── home │ │ └── home.component.ngfactory.ts └── node_modules │ └── @angular │ ├── common │ └── src │ │ └── common_module.ngfactory.ts │ ├── core │ └── src │ │ └── application_module.ngfactory.ts │ ├── forms │ └── src │ │ ├── directives.ngfactory.ts │ │ └── form_providers.ngfactory.ts │ ├── http │ └── src │ │ └── http_module.ngfactory.ts │ ├── platform-browser │ └── src │ │ └── browser.ngfactory.ts │ └── router │ └── src │ └── router_module.ngfactory.ts ├── app ├── app.component.html ├── app.component.ts ├── app.definitions.d.ts ├── app.module.ts ├── app.routes.ts ├── entities │ └── flug.ts ├── flug │ ├── flug-buchen │ │ ├── flug-buchen.component.html │ │ └── flug-buchen.component.ts │ ├── flug-edit │ │ ├── flug-edit.component.html │ │ └── flug-edit.component.ts │ ├── flug-suchen │ │ ├── flug-suchen.component.css │ │ ├── flug-suchen.component.css.shim.ts │ │ ├── flug-suchen.component.html │ │ └── flug-suchen.component.ts │ ├── flug.module.ts │ ├── flug.routes.ts │ ├── passagier-suchen │ │ └── passagier.suchen.component.ts │ └── services │ │ └── flug.service.ts ├── home │ └── home.component.ts ├── main.aot.ts ├── main.jit.ts ├── pipes │ └── city.pipe.ts ├── polyfills.ts ├── tests.ts ├── validators │ ├── ort-async.validator.directive.ts │ ├── ort.validator.directive.ts │ └── simple-ort.validator.ts └── vendor.ts ├── favicon.ico ├── index.aot.html ├── index.jit.html ├── index.rollup.aot.html ├── npm-debug.log.2117612014 ├── package.json ├── readme.md ├── rollup.js ├── tests └── units.html ├── tsconfig.aot.json ├── tsconfig.json ├── webpack.aot.config.js └── webpack.jit.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules/ 2 | /dist/ 3 | /npm-debug.log 4 | /typings/ 5 | -------------------------------------------------------------------------------- /.idea/.name: -------------------------------------------------------------------------------- 1 | starter -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 227 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/starter.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/typescript-compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "0.1.0", 5 | "command": "npm", 6 | "isShellCommand": true, 7 | "args": ["run", "tsc"], 8 | "showOutput": "silent", 9 | "problemMatcher": "$tsc" 10 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2015-2016 Google, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /aot/app/app.component.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/render/api'; 8 | import * as import1 from '@angular/core/src/linker/view'; 9 | import * as import2 from '@angular/core/src/linker/element'; 10 | import * as import3 from '../../app/app.component'; 11 | import * as import4 from '@angular/core/src/linker/view_utils'; 12 | import * as import5 from '@angular/core/src/di/injector'; 13 | import * as import6 from '@angular/core/src/linker/view_type'; 14 | import * as import7 from '@angular/core/src/change_detection/change_detection'; 15 | import * as import8 from '@angular/router/src/router'; 16 | import * as import9 from '@angular/core/src/metadata/view'; 17 | import * as import10 from '@angular/core/src/linker/component_factory'; 18 | import * as import11 from '@angular/router/src/directives/router_link'; 19 | import * as import12 from '@angular/router/src/directives/router_outlet'; 20 | import * as import13 from '@angular/router/src/router_state'; 21 | import * as import14 from '@angular/common/src/location/location_strategy'; 22 | import * as import15 from '@angular/router/src/router_outlet_map'; 23 | import * as import16 from '@angular/core/src/linker/component_factory_resolver'; 24 | import * as import17 from '@angular/core/src/security'; 25 | var renderType_AppComponent_Host:import0.RenderComponentType = (null as any); 26 | class _View_AppComponent_Host0 extends import1.AppView { 27 | _el_0:any; 28 | /*private*/ _appEl_0:import2.AppElement; 29 | _AppComponent_0_4:import3.AppComponent; 30 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 31 | super(_View_AppComponent_Host0,renderType_AppComponent_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 32 | } 33 | createInternal(rootSelector:string):import2.AppElement { 34 | this._el_0 = this.selectOrCreateHostElement('flug-app',rootSelector,(null as any)); 35 | this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0); 36 | var compView_0:any = viewFactory_AppComponent0(this.viewUtils,this.injector(0),this._appEl_0); 37 | this._AppComponent_0_4 = new import3.AppComponent(this.parentInjector.get(import8.Router)); 38 | this._appEl_0.initComponent(this._AppComponent_0_4,[],compView_0); 39 | compView_0.create(this._AppComponent_0_4,this.projectableNodes,(null as any)); 40 | this.init([].concat([this._el_0]),[this._el_0],[],[]); 41 | return this._appEl_0; 42 | } 43 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 44 | if (((token === import3.AppComponent) && (0 === requestNodeIndex))) { return this._AppComponent_0_4; } 45 | return notFoundResult; 46 | } 47 | } 48 | function viewFactory_AppComponent_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 49 | if ((renderType_AppComponent_Host === (null as any))) { (renderType_AppComponent_Host = viewUtils.createRenderComponentType('',0,import9.ViewEncapsulation.None,[],{})); } 50 | return new _View_AppComponent_Host0(viewUtils,parentInjector,declarationEl); 51 | } 52 | export const AppComponentNgFactory:import10.ComponentFactory = new import10.ComponentFactory('flug-app',viewFactory_AppComponent_Host0,import3.AppComponent); 53 | const styles_AppComponent:any[] = []; 54 | var renderType_AppComponent:import0.RenderComponentType = (null as any); 55 | class _View_AppComponent0 extends import1.AppView { 56 | _el_0:any; 57 | _text_1:any; 58 | _el_2:any; 59 | _text_3:any; 60 | _el_4:any; 61 | _el_5:any; 62 | _RouterLinkWithHref_5_3:import11.RouterLinkWithHref; 63 | _text_6:any; 64 | _text_7:any; 65 | _el_8:any; 66 | _el_9:any; 67 | _RouterLinkWithHref_9_3:import11.RouterLinkWithHref; 68 | _text_10:any; 69 | _text_11:any; 70 | _text_12:any; 71 | _text_13:any; 72 | _el_14:any; 73 | _text_15:any; 74 | _el_16:any; 75 | /*private*/ _appEl_16:import2.AppElement; 76 | _RouterOutlet_16_5:import12.RouterOutlet; 77 | _text_17:any; 78 | _arr_0:any; 79 | /*private*/ _expr_1:any; 80 | /*private*/ _expr_2:any; 81 | _arr_1:any; 82 | /*private*/ _expr_4:any; 83 | /*private*/ _expr_5:any; 84 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 85 | super(_View_AppComponent0,renderType_AppComponent,import6.ViewType.COMPONENT,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 86 | } 87 | createInternal(rootSelector:string):import2.AppElement { 88 | const parentRenderNode:any = this.renderer.createViewRoot(this.declarationAppElement.nativeElement); 89 | this._el_0 = this.renderer.createElement(parentRenderNode,'nav',(null as any)); 90 | this.renderer.setElementAttribute(this._el_0,'class','navbar navbar-default'); 91 | this._text_1 = this.renderer.createText(this._el_0,'\n ',(null as any)); 92 | this._el_2 = this.renderer.createElement(this._el_0,'ul',(null as any)); 93 | this.renderer.setElementAttribute(this._el_2,'class','nav navbar-nav'); 94 | this._text_3 = this.renderer.createText(this._el_2,'\n ',(null as any)); 95 | this._el_4 = this.renderer.createElement(this._el_2,'li',(null as any)); 96 | this._el_5 = this.renderer.createElement(this._el_4,'a',(null as any)); 97 | this._RouterLinkWithHref_5_3 = new import11.RouterLinkWithHref(this.parentInjector.get(import8.Router),this.parentInjector.get(import13.ActivatedRoute),this.parentInjector.get(import14.LocationStrategy)); 98 | this._text_6 = this.renderer.createText(this._el_5,'Home',(null as any)); 99 | this._text_7 = this.renderer.createText(this._el_2,'\n ',(null as any)); 100 | this._el_8 = this.renderer.createElement(this._el_2,'li',(null as any)); 101 | this._el_9 = this.renderer.createElement(this._el_8,'a',(null as any)); 102 | this._RouterLinkWithHref_9_3 = new import11.RouterLinkWithHref(this.parentInjector.get(import8.Router),this.parentInjector.get(import13.ActivatedRoute),this.parentInjector.get(import14.LocationStrategy)); 103 | this._text_10 = this.renderer.createText(this._el_9,'Flug Buchen',(null as any)); 104 | this._text_11 = this.renderer.createText(this._el_2,'\n ',(null as any)); 105 | this._text_12 = this.renderer.createText(this._el_0,'\n',(null as any)); 106 | this._text_13 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 107 | this._el_14 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 108 | this.renderer.setElementAttribute(this._el_14,'class','container'); 109 | this._text_15 = this.renderer.createText(this._el_14,'\n ',(null as any)); 110 | this._el_16 = this.renderer.createElement(this._el_14,'router-outlet',(null as any)); 111 | this._appEl_16 = new import2.AppElement(16,14,this,this._el_16); 112 | this._RouterOutlet_16_5 = new import12.RouterOutlet(this.parentInjector.get(import15.RouterOutletMap),this._appEl_16.vcRef,this.parentInjector.get(import16.ComponentFactoryResolver),(null as any)); 113 | this._text_17 = this.renderer.createText(this._el_14,'\n',(null as any)); 114 | var disposable_0:Function = this.renderer.listen(this._el_5,'click',this.eventHandler(this._handle_click_5_0.bind(this))); 115 | this._arr_0 = import4.pureProxy1((p0:any):any[] => { 116 | return [p0]; 117 | }); 118 | this._expr_1 = import7.UNINITIALIZED; 119 | this._expr_2 = import7.UNINITIALIZED; 120 | var disposable_1:Function = this.renderer.listen(this._el_9,'click',this.eventHandler(this._handle_click_9_0.bind(this))); 121 | this._arr_1 = import4.pureProxy1((p0:any):any[] => { 122 | return [p0]; 123 | }); 124 | this._expr_4 = import7.UNINITIALIZED; 125 | this._expr_5 = import7.UNINITIALIZED; 126 | this.init([],[ 127 | this._el_0, 128 | this._text_1, 129 | this._el_2, 130 | this._text_3, 131 | this._el_4, 132 | this._el_5, 133 | this._text_6, 134 | this._text_7, 135 | this._el_8, 136 | this._el_9, 137 | this._text_10, 138 | this._text_11, 139 | this._text_12, 140 | this._text_13, 141 | this._el_14, 142 | this._text_15, 143 | this._el_16, 144 | this._text_17 145 | ] 146 | ,[ 147 | disposable_0, 148 | disposable_1 149 | ] 150 | ,[]); 151 | return (null as any); 152 | } 153 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 154 | if (((token === import11.RouterLinkWithHref) && ((5 <= requestNodeIndex) && (requestNodeIndex <= 6)))) { return this._RouterLinkWithHref_5_3; } 155 | if (((token === import11.RouterLinkWithHref) && ((9 <= requestNodeIndex) && (requestNodeIndex <= 10)))) { return this._RouterLinkWithHref_9_3; } 156 | if (((token === import12.RouterOutlet) && (16 === requestNodeIndex))) { return this._RouterOutlet_16_5; } 157 | return notFoundResult; 158 | } 159 | detectChangesInternal(throwOnChange:boolean):void { 160 | var changes:{[key: string]:import7.SimpleChange} = (null as any); 161 | changes = (null as any); 162 | const currVal_1:any = this._arr_0('/home'); 163 | if (import4.checkBinding(throwOnChange,this._expr_1,currVal_1)) { 164 | this._RouterLinkWithHref_5_3.routerLink = currVal_1; 165 | if ((changes === (null as any))) { (changes = {}); } 166 | changes['routerLink'] = new import7.SimpleChange(this._expr_1,currVal_1); 167 | this._expr_1 = currVal_1; 168 | } 169 | if ((changes !== (null as any))) { this._RouterLinkWithHref_5_3.ngOnChanges(changes); } 170 | changes = (null as any); 171 | const currVal_4:any = this._arr_1('/flug-buchen/flug-suchen'); 172 | if (import4.checkBinding(throwOnChange,this._expr_4,currVal_4)) { 173 | this._RouterLinkWithHref_9_3.routerLink = currVal_4; 174 | if ((changes === (null as any))) { (changes = {}); } 175 | changes['routerLink'] = new import7.SimpleChange(this._expr_4,currVal_4); 176 | this._expr_4 = currVal_4; 177 | } 178 | if ((changes !== (null as any))) { this._RouterLinkWithHref_9_3.ngOnChanges(changes); } 179 | this.detectContentChildrenChanges(throwOnChange); 180 | const currVal_2:any = this._RouterLinkWithHref_5_3.href; 181 | if (import4.checkBinding(throwOnChange,this._expr_2,currVal_2)) { 182 | this.renderer.setElementProperty(this._el_5,'href',this.viewUtils.sanitizer.sanitize(import17.SecurityContext.URL,currVal_2)); 183 | this._expr_2 = currVal_2; 184 | } 185 | const currVal_5:any = this._RouterLinkWithHref_9_3.href; 186 | if (import4.checkBinding(throwOnChange,this._expr_5,currVal_5)) { 187 | this.renderer.setElementProperty(this._el_9,'href',this.viewUtils.sanitizer.sanitize(import17.SecurityContext.URL,currVal_5)); 188 | this._expr_5 = currVal_5; 189 | } 190 | this.detectViewChildrenChanges(throwOnChange); 191 | } 192 | destroyInternal():void { 193 | this._RouterLinkWithHref_5_3.ngOnDestroy(); 194 | this._RouterLinkWithHref_9_3.ngOnDestroy(); 195 | this._RouterOutlet_16_5.ngOnDestroy(); 196 | } 197 | private _handle_click_5_0($event:any):boolean { 198 | this.markPathToRootAsCheckOnce(); 199 | const pd_0:any = ((this._RouterLinkWithHref_5_3.onClick($event.button,$event.ctrlKey,$event.metaKey)) !== false); 200 | return (true && pd_0); 201 | } 202 | private _handle_click_9_0($event:any):boolean { 203 | this.markPathToRootAsCheckOnce(); 204 | const pd_0:any = ((this._RouterLinkWithHref_9_3.onClick($event.button,$event.ctrlKey,$event.metaKey)) !== false); 205 | return (true && pd_0); 206 | } 207 | } 208 | export function viewFactory_AppComponent0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 209 | if ((renderType_AppComponent === (null as any))) { (renderType_AppComponent = viewUtils.createRenderComponentType('c:/Users/Manfred/Documents/artikel/Blog/angular2-aot/aot/app/app.component.html',0,import9.ViewEncapsulation.None,styles_AppComponent,{})); } 210 | return new _View_AppComponent0(viewUtils,parentInjector,declarationEl); 211 | } -------------------------------------------------------------------------------- /aot/app/app.module.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '../../app/app.module'; 9 | import * as import2 from '@angular/common/src/common_module'; 10 | import * as import3 from '@angular/core/src/application_module'; 11 | import * as import4 from '@angular/platform-browser/src/browser'; 12 | import * as import5 from '@angular/http/src/http_module'; 13 | import * as import6 from '@angular/forms/src/directives'; 14 | import * as import7 from '@angular/forms/src/form_providers'; 15 | import * as import8 from '@angular/router/src/router_module'; 16 | import * as import9 from '../../app/flug/flug.module'; 17 | import * as import10 from '@angular/common/src/localization'; 18 | import * as import11 from '@angular/core/src/application_init'; 19 | import * as import12 from '@angular/core/src/testability/testability'; 20 | import * as import13 from '@angular/core/src/application_ref'; 21 | import * as import14 from '@angular/core/src/linker/compiler'; 22 | import * as import15 from '@angular/platform-browser/src/dom/events/hammer_gestures'; 23 | import * as import16 from '@angular/platform-browser/src/dom/events/event_manager'; 24 | import * as import17 from '@angular/platform-browser/src/dom/shared_styles_host'; 25 | import * as import18 from '@angular/platform-browser/src/dom/dom_renderer'; 26 | import * as import19 from '@angular/platform-browser/src/security/dom_sanitization_service'; 27 | import * as import20 from '@angular/core/src/linker/view_utils'; 28 | import * as import21 from '@angular/platform-browser/src/browser/title'; 29 | import * as import22 from '@angular/http/src/backends/browser_xhr'; 30 | import * as import23 from '@angular/http/src/base_response_options'; 31 | import * as import24 from '@angular/http/src/backends/xhr_backend'; 32 | import * as import25 from '@angular/http/src/base_request_options'; 33 | import * as import26 from '@angular/forms/src/directives/radio_control_value_accessor'; 34 | import * as import27 from '../../app/flug/services/flug.service'; 35 | import * as import28 from '@angular/common/src/location/location'; 36 | import * as import29 from '@angular/router/src/url_tree'; 37 | import * as import30 from '@angular/router/src/router_outlet_map'; 38 | import * as import31 from '@angular/core/src/linker/system_js_ng_module_factory_loader'; 39 | import * as import32 from '@angular/core/src/di/injector'; 40 | import * as import33 from './flug/flug-buchen/flug-buchen.component.ngfactory'; 41 | import * as import34 from './flug/flug-suchen/flug-suchen.component.ngfactory'; 42 | import * as import35 from './flug/passagier-suchen/passagier.suchen.component.ngfactory'; 43 | import * as import36 from './flug/flug-edit/flug-edit.component.ngfactory'; 44 | import * as import37 from './home/home.component.ngfactory'; 45 | import * as import38 from './app.component.ngfactory'; 46 | import * as import39 from '@angular/core/src/application_tokens'; 47 | import * as import40 from '@angular/platform-browser/src/dom/events/dom_events'; 48 | import * as import41 from '@angular/platform-browser/src/dom/events/key_events'; 49 | import * as import42 from '@angular/core/src/zone/ng_zone'; 50 | import * as import43 from '@angular/platform-browser/src/dom/debug/ng_probe'; 51 | import * as import44 from '../../app/flug/flug-buchen/flug-buchen.component'; 52 | import * as import45 from '../../app/flug/flug-suchen/flug-suchen.component'; 53 | import * as import46 from '../../app/flug/passagier-suchen/passagier.suchen.component'; 54 | import * as import47 from '../../app/flug/flug-edit/flug-edit.component'; 55 | import * as import48 from '../../app/home/home.component'; 56 | import * as import49 from '@angular/common/src/location/platform_location'; 57 | import * as import50 from '@angular/common/src/location/location_strategy'; 58 | import * as import51 from '@angular/router/src/router'; 59 | import * as import52 from '@angular/core/src/console'; 60 | import * as import53 from '@angular/core/src/i18n/tokens'; 61 | import * as import54 from '@angular/core/src/error_handler'; 62 | import * as import55 from '@angular/platform-browser/src/dom/dom_tokens'; 63 | import * as import56 from '@angular/platform-browser/src/dom/animation_driver'; 64 | import * as import57 from '@angular/core/src/render/api'; 65 | import * as import58 from '@angular/core/src/security'; 66 | import * as import59 from '@angular/core/src/change_detection/differs/iterable_differs'; 67 | import * as import60 from '@angular/core/src/change_detection/differs/keyvalue_differs'; 68 | import * as import61 from '@angular/http/src/interfaces'; 69 | import * as import62 from '@angular/http/src/http'; 70 | import * as import63 from '@angular/router/src/router_config_loader'; 71 | import * as import64 from '@angular/core/src/linker/ng_module_factory_loader'; 72 | import * as import65 from '@angular/router/src/router_state'; 73 | import * as import66 from '@angular/core/src/i18n/tokens'; 74 | class AppModuleInjector extends import0.NgModuleInjector { 75 | _CommonModule_0:import2.CommonModule; 76 | _ApplicationModule_1:import3.ApplicationModule; 77 | _BrowserModule_2:import4.BrowserModule; 78 | _HttpModule_3:import5.HttpModule; 79 | _InternalFormsSharedModule_4:import6.InternalFormsSharedModule; 80 | _FormsModule_5:import7.FormsModule; 81 | _ROUTER_FORROOT_GUARD_6:any; 82 | _RouterModule_7:import8.RouterModule; 83 | _FlugModule_8:import9.FlugModule; 84 | _AppModule_9:import1.AppModule; 85 | __LOCALE_ID_10:any; 86 | __NgLocalization_11:import10.NgLocaleLocalization; 87 | _ErrorHandler_12:any; 88 | _ApplicationInitStatus_13:import11.ApplicationInitStatus; 89 | _Testability_14:import12.Testability; 90 | _ApplicationRef__15:import13.ApplicationRef_; 91 | __ApplicationRef_16:any; 92 | __Compiler_17:import14.Compiler; 93 | __APP_ID_18:any; 94 | __DOCUMENT_19:any; 95 | __HAMMER_GESTURE_CONFIG_20:import15.HammerGestureConfig; 96 | __EVENT_MANAGER_PLUGINS_21:any[]; 97 | __EventManager_22:import16.EventManager; 98 | __DomSharedStylesHost_23:import17.DomSharedStylesHost; 99 | __AnimationDriver_24:any; 100 | __DomRootRenderer_25:import18.DomRootRenderer_; 101 | __RootRenderer_26:any; 102 | __DomSanitizer_27:import19.DomSanitizerImpl; 103 | __Sanitizer_28:any; 104 | __ViewUtils_29:import20.ViewUtils; 105 | __IterableDiffers_30:any; 106 | __KeyValueDiffers_31:any; 107 | __SharedStylesHost_32:any; 108 | __Title_33:import21.Title; 109 | __BrowserXhr_34:import22.BrowserXhr; 110 | __ResponseOptions_35:import23.BaseResponseOptions; 111 | __XSRFStrategy_36:any; 112 | __XHRBackend_37:import24.XHRBackend; 113 | __RequestOptions_38:import25.BaseRequestOptions; 114 | __Http_39:any; 115 | __RadioControlRegistry_40:import26.RadioControlRegistry; 116 | __ROUTES_41:any[]; 117 | __FlugService_42:import27.FlugService; 118 | __ROUTER_CONFIGURATION_43:any; 119 | __LocationStrategy_44:any; 120 | __Location_45:import28.Location; 121 | __UrlSerializer_46:import29.DefaultUrlSerializer; 122 | __RouterOutletMap_47:import30.RouterOutletMap; 123 | __NgModuleFactoryLoader_48:import31.SystemJsNgModuleLoader; 124 | __Router_49:any; 125 | __ActivatedRoute_50:any; 126 | __APP_BOOTSTRAP_LISTENER_51:any[]; 127 | __TRANSLATIONS_FORMAT_52:any; 128 | constructor(parent:import32.Injector) { 129 | super(parent,[ 130 | import33.FlugBuchenComponentNgFactory, 131 | import34.FlugSuchenComponentNgFactory, 132 | import35.PassagierSuchenComponentNgFactory, 133 | import36.FlugEditComponentNgFactory, 134 | import37.HomeComponentNgFactory, 135 | import38.AppComponentNgFactory 136 | ] 137 | ,[import38.AppComponentNgFactory]); 138 | } 139 | get _LOCALE_ID_10():any { 140 | if ((this.__LOCALE_ID_10 == (null as any))) { (this.__LOCALE_ID_10 = 'en-US'); } 141 | return this.__LOCALE_ID_10; 142 | } 143 | get _NgLocalization_11():import10.NgLocaleLocalization { 144 | if ((this.__NgLocalization_11 == (null as any))) { (this.__NgLocalization_11 = new import10.NgLocaleLocalization(this._LOCALE_ID_10)); } 145 | return this.__NgLocalization_11; 146 | } 147 | get _ApplicationRef_16():any { 148 | if ((this.__ApplicationRef_16 == (null as any))) { (this.__ApplicationRef_16 = this._ApplicationRef__15); } 149 | return this.__ApplicationRef_16; 150 | } 151 | get _Compiler_17():import14.Compiler { 152 | if ((this.__Compiler_17 == (null as any))) { (this.__Compiler_17 = new import14.Compiler()); } 153 | return this.__Compiler_17; 154 | } 155 | get _APP_ID_18():any { 156 | if ((this.__APP_ID_18 == (null as any))) { (this.__APP_ID_18 = import39._appIdRandomProviderFactory()); } 157 | return this.__APP_ID_18; 158 | } 159 | get _DOCUMENT_19():any { 160 | if ((this.__DOCUMENT_19 == (null as any))) { (this.__DOCUMENT_19 = import4._document()); } 161 | return this.__DOCUMENT_19; 162 | } 163 | get _HAMMER_GESTURE_CONFIG_20():import15.HammerGestureConfig { 164 | if ((this.__HAMMER_GESTURE_CONFIG_20 == (null as any))) { (this.__HAMMER_GESTURE_CONFIG_20 = new import15.HammerGestureConfig()); } 165 | return this.__HAMMER_GESTURE_CONFIG_20; 166 | } 167 | get _EVENT_MANAGER_PLUGINS_21():any[] { 168 | if ((this.__EVENT_MANAGER_PLUGINS_21 == (null as any))) { (this.__EVENT_MANAGER_PLUGINS_21 = [ 169 | new import40.DomEventsPlugin(), 170 | new import41.KeyEventsPlugin(), 171 | new import15.HammerGesturesPlugin(this._HAMMER_GESTURE_CONFIG_20) 172 | ] 173 | ); } 174 | return this.__EVENT_MANAGER_PLUGINS_21; 175 | } 176 | get _EventManager_22():import16.EventManager { 177 | if ((this.__EventManager_22 == (null as any))) { (this.__EventManager_22 = new import16.EventManager(this._EVENT_MANAGER_PLUGINS_21,this.parent.get(import42.NgZone))); } 178 | return this.__EventManager_22; 179 | } 180 | get _DomSharedStylesHost_23():import17.DomSharedStylesHost { 181 | if ((this.__DomSharedStylesHost_23 == (null as any))) { (this.__DomSharedStylesHost_23 = new import17.DomSharedStylesHost(this._DOCUMENT_19)); } 182 | return this.__DomSharedStylesHost_23; 183 | } 184 | get _AnimationDriver_24():any { 185 | if ((this.__AnimationDriver_24 == (null as any))) { (this.__AnimationDriver_24 = import4._resolveDefaultAnimationDriver()); } 186 | return this.__AnimationDriver_24; 187 | } 188 | get _DomRootRenderer_25():import18.DomRootRenderer_ { 189 | if ((this.__DomRootRenderer_25 == (null as any))) { (this.__DomRootRenderer_25 = new import18.DomRootRenderer_(this._DOCUMENT_19,this._EventManager_22,this._DomSharedStylesHost_23,this._AnimationDriver_24)); } 190 | return this.__DomRootRenderer_25; 191 | } 192 | get _RootRenderer_26():any { 193 | if ((this.__RootRenderer_26 == (null as any))) { (this.__RootRenderer_26 = import43._createConditionalRootRenderer(this._DomRootRenderer_25,this.parent.get(import43.NgProbeToken,(null as any)))); } 194 | return this.__RootRenderer_26; 195 | } 196 | get _DomSanitizer_27():import19.DomSanitizerImpl { 197 | if ((this.__DomSanitizer_27 == (null as any))) { (this.__DomSanitizer_27 = new import19.DomSanitizerImpl()); } 198 | return this.__DomSanitizer_27; 199 | } 200 | get _Sanitizer_28():any { 201 | if ((this.__Sanitizer_28 == (null as any))) { (this.__Sanitizer_28 = this._DomSanitizer_27); } 202 | return this.__Sanitizer_28; 203 | } 204 | get _ViewUtils_29():import20.ViewUtils { 205 | if ((this.__ViewUtils_29 == (null as any))) { (this.__ViewUtils_29 = new import20.ViewUtils(this._RootRenderer_26,this._APP_ID_18,this._Sanitizer_28)); } 206 | return this.__ViewUtils_29; 207 | } 208 | get _IterableDiffers_30():any { 209 | if ((this.__IterableDiffers_30 == (null as any))) { (this.__IterableDiffers_30 = import3._iterableDiffersFactory()); } 210 | return this.__IterableDiffers_30; 211 | } 212 | get _KeyValueDiffers_31():any { 213 | if ((this.__KeyValueDiffers_31 == (null as any))) { (this.__KeyValueDiffers_31 = import3._keyValueDiffersFactory()); } 214 | return this.__KeyValueDiffers_31; 215 | } 216 | get _SharedStylesHost_32():any { 217 | if ((this.__SharedStylesHost_32 == (null as any))) { (this.__SharedStylesHost_32 = this._DomSharedStylesHost_23); } 218 | return this.__SharedStylesHost_32; 219 | } 220 | get _Title_33():import21.Title { 221 | if ((this.__Title_33 == (null as any))) { (this.__Title_33 = new import21.Title()); } 222 | return this.__Title_33; 223 | } 224 | get _BrowserXhr_34():import22.BrowserXhr { 225 | if ((this.__BrowserXhr_34 == (null as any))) { (this.__BrowserXhr_34 = new import22.BrowserXhr()); } 226 | return this.__BrowserXhr_34; 227 | } 228 | get _ResponseOptions_35():import23.BaseResponseOptions { 229 | if ((this.__ResponseOptions_35 == (null as any))) { (this.__ResponseOptions_35 = new import23.BaseResponseOptions()); } 230 | return this.__ResponseOptions_35; 231 | } 232 | get _XSRFStrategy_36():any { 233 | if ((this.__XSRFStrategy_36 == (null as any))) { (this.__XSRFStrategy_36 = import5._createDefaultCookieXSRFStrategy()); } 234 | return this.__XSRFStrategy_36; 235 | } 236 | get _XHRBackend_37():import24.XHRBackend { 237 | if ((this.__XHRBackend_37 == (null as any))) { (this.__XHRBackend_37 = new import24.XHRBackend(this._BrowserXhr_34,this._ResponseOptions_35,this._XSRFStrategy_36)); } 238 | return this.__XHRBackend_37; 239 | } 240 | get _RequestOptions_38():import25.BaseRequestOptions { 241 | if ((this.__RequestOptions_38 == (null as any))) { (this.__RequestOptions_38 = new import25.BaseRequestOptions()); } 242 | return this.__RequestOptions_38; 243 | } 244 | get _Http_39():any { 245 | if ((this.__Http_39 == (null as any))) { (this.__Http_39 = import5.httpFactory(this._XHRBackend_37,this._RequestOptions_38)); } 246 | return this.__Http_39; 247 | } 248 | get _RadioControlRegistry_40():import26.RadioControlRegistry { 249 | if ((this.__RadioControlRegistry_40 == (null as any))) { (this.__RadioControlRegistry_40 = new import26.RadioControlRegistry()); } 250 | return this.__RadioControlRegistry_40; 251 | } 252 | get _ROUTES_41():any[] { 253 | if ((this.__ROUTES_41 == (null as any))) { (this.__ROUTES_41 = [ 254 | [{ 255 | path: 'flug-buchen', 256 | component: import44.FlugBuchenComponent, 257 | children: [ 258 | { 259 | path: 'flug-suchen', 260 | component: import45.FlugSuchenComponent 261 | } 262 | , 263 | { 264 | path: 'passagier-suchen', 265 | component: import46.PassagierSuchenComponent 266 | } 267 | , 268 | { 269 | path: 'flug-edit/:id', 270 | component: import47.FlugEditComponent 271 | } 272 | 273 | ] 274 | 275 | } 276 | ], 277 | [ 278 | { 279 | path: '', 280 | redirectTo: 'home', 281 | pathMatch: 'full' 282 | } 283 | , 284 | { 285 | path: 'home', 286 | component: import48.HomeComponent 287 | } 288 | , 289 | { 290 | path: '**', 291 | redirectTo: 'home' 292 | } 293 | 294 | ] 295 | 296 | ] 297 | ); } 298 | return this.__ROUTES_41; 299 | } 300 | get _FlugService_42():import27.FlugService { 301 | if ((this.__FlugService_42 == (null as any))) { (this.__FlugService_42 = new import27.FlugService(this._Http_39)); } 302 | return this.__FlugService_42; 303 | } 304 | get _ROUTER_CONFIGURATION_43():any { 305 | if ((this.__ROUTER_CONFIGURATION_43 == (null as any))) { (this.__ROUTER_CONFIGURATION_43 = {}); } 306 | return this.__ROUTER_CONFIGURATION_43; 307 | } 308 | get _LocationStrategy_44():any { 309 | if ((this.__LocationStrategy_44 == (null as any))) { (this.__LocationStrategy_44 = import8.provideLocationStrategy(this.parent.get(import49.PlatformLocation),this.parent.get(import50.APP_BASE_HREF,(null as any)),this._ROUTER_CONFIGURATION_43)); } 310 | return this.__LocationStrategy_44; 311 | } 312 | get _Location_45():import28.Location { 313 | if ((this.__Location_45 == (null as any))) { (this.__Location_45 = new import28.Location(this._LocationStrategy_44)); } 314 | return this.__Location_45; 315 | } 316 | get _UrlSerializer_46():import29.DefaultUrlSerializer { 317 | if ((this.__UrlSerializer_46 == (null as any))) { (this.__UrlSerializer_46 = new import29.DefaultUrlSerializer()); } 318 | return this.__UrlSerializer_46; 319 | } 320 | get _RouterOutletMap_47():import30.RouterOutletMap { 321 | if ((this.__RouterOutletMap_47 == (null as any))) { (this.__RouterOutletMap_47 = new import30.RouterOutletMap()); } 322 | return this.__RouterOutletMap_47; 323 | } 324 | get _NgModuleFactoryLoader_48():import31.SystemJsNgModuleLoader { 325 | if ((this.__NgModuleFactoryLoader_48 == (null as any))) { (this.__NgModuleFactoryLoader_48 = new import31.SystemJsNgModuleLoader(this._Compiler_17,this.parent.get(import31.SystemJsNgModuleLoaderConfig,(null as any)))); } 326 | return this.__NgModuleFactoryLoader_48; 327 | } 328 | get _Router_49():any { 329 | if ((this.__Router_49 == (null as any))) { (this.__Router_49 = import8.setupRouter(this._ApplicationRef_16,this._UrlSerializer_46,this._RouterOutletMap_47,this._Location_45,this,this._NgModuleFactoryLoader_48,this._Compiler_17,this._ROUTES_41,this._ROUTER_CONFIGURATION_43)); } 330 | return this.__Router_49; 331 | } 332 | get _ActivatedRoute_50():any { 333 | if ((this.__ActivatedRoute_50 == (null as any))) { (this.__ActivatedRoute_50 = import8.rootRoute(this._Router_49)); } 334 | return this.__ActivatedRoute_50; 335 | } 336 | get _APP_BOOTSTRAP_LISTENER_51():any[] { 337 | if ((this.__APP_BOOTSTRAP_LISTENER_51 == (null as any))) { (this.__APP_BOOTSTRAP_LISTENER_51 = [import8.initialRouterNavigation(this._Router_49,this._ROUTER_CONFIGURATION_43)]); } 338 | return this.__APP_BOOTSTRAP_LISTENER_51; 339 | } 340 | get _TRANSLATIONS_FORMAT_52():any { 341 | if ((this.__TRANSLATIONS_FORMAT_52 == (null as any))) { (this.__TRANSLATIONS_FORMAT_52 = (null as any)); } 342 | return this.__TRANSLATIONS_FORMAT_52; 343 | } 344 | createInternal():import1.AppModule { 345 | this._CommonModule_0 = new import2.CommonModule(); 346 | this._ApplicationModule_1 = new import3.ApplicationModule(); 347 | this._BrowserModule_2 = new import4.BrowserModule(this.parent.get(import4.BrowserModule,(null as any))); 348 | this._HttpModule_3 = new import5.HttpModule(); 349 | this._InternalFormsSharedModule_4 = new import6.InternalFormsSharedModule(); 350 | this._FormsModule_5 = new import7.FormsModule(); 351 | this._ROUTER_FORROOT_GUARD_6 = import8.provideForRootGuard(this.parent.get(import51.Router,(null as any))); 352 | this._RouterModule_7 = new import8.RouterModule(this._ROUTER_FORROOT_GUARD_6); 353 | this._FlugModule_8 = new import9.FlugModule(); 354 | this._AppModule_9 = new import1.AppModule(); 355 | this._ErrorHandler_12 = import4.errorHandler(); 356 | this._ApplicationInitStatus_13 = new import11.ApplicationInitStatus(this.parent.get(import11.APP_INITIALIZER,(null as any))); 357 | this._Testability_14 = new import12.Testability(this.parent.get(import42.NgZone)); 358 | this._ApplicationRef__15 = new import13.ApplicationRef_(this.parent.get(import42.NgZone),this.parent.get(import52.Console),this,this._ErrorHandler_12,this,this._ApplicationInitStatus_13,this.parent.get(import12.TestabilityRegistry,(null as any)),this._Testability_14); 359 | return this._AppModule_9; 360 | } 361 | getInternal(token:any,notFoundResult:any):any { 362 | if ((token === import2.CommonModule)) { return this._CommonModule_0; } 363 | if ((token === import3.ApplicationModule)) { return this._ApplicationModule_1; } 364 | if ((token === import4.BrowserModule)) { return this._BrowserModule_2; } 365 | if ((token === import5.HttpModule)) { return this._HttpModule_3; } 366 | if ((token === import6.InternalFormsSharedModule)) { return this._InternalFormsSharedModule_4; } 367 | if ((token === import7.FormsModule)) { return this._FormsModule_5; } 368 | if ((token === import8.ROUTER_FORROOT_GUARD)) { return this._ROUTER_FORROOT_GUARD_6; } 369 | if ((token === import8.RouterModule)) { return this._RouterModule_7; } 370 | if ((token === import9.FlugModule)) { return this._FlugModule_8; } 371 | if ((token === import1.AppModule)) { return this._AppModule_9; } 372 | if ((token === import53.LOCALE_ID)) { return this._LOCALE_ID_10; } 373 | if ((token === import10.NgLocalization)) { return this._NgLocalization_11; } 374 | if ((token === import54.ErrorHandler)) { return this._ErrorHandler_12; } 375 | if ((token === import11.ApplicationInitStatus)) { return this._ApplicationInitStatus_13; } 376 | if ((token === import12.Testability)) { return this._Testability_14; } 377 | if ((token === import13.ApplicationRef_)) { return this._ApplicationRef__15; } 378 | if ((token === import13.ApplicationRef)) { return this._ApplicationRef_16; } 379 | if ((token === import14.Compiler)) { return this._Compiler_17; } 380 | if ((token === import39.APP_ID)) { return this._APP_ID_18; } 381 | if ((token === import55.DOCUMENT)) { return this._DOCUMENT_19; } 382 | if ((token === import15.HAMMER_GESTURE_CONFIG)) { return this._HAMMER_GESTURE_CONFIG_20; } 383 | if ((token === import16.EVENT_MANAGER_PLUGINS)) { return this._EVENT_MANAGER_PLUGINS_21; } 384 | if ((token === import16.EventManager)) { return this._EventManager_22; } 385 | if ((token === import17.DomSharedStylesHost)) { return this._DomSharedStylesHost_23; } 386 | if ((token === import56.AnimationDriver)) { return this._AnimationDriver_24; } 387 | if ((token === import18.DomRootRenderer)) { return this._DomRootRenderer_25; } 388 | if ((token === import57.RootRenderer)) { return this._RootRenderer_26; } 389 | if ((token === import19.DomSanitizer)) { return this._DomSanitizer_27; } 390 | if ((token === import58.Sanitizer)) { return this._Sanitizer_28; } 391 | if ((token === import20.ViewUtils)) { return this._ViewUtils_29; } 392 | if ((token === import59.IterableDiffers)) { return this._IterableDiffers_30; } 393 | if ((token === import60.KeyValueDiffers)) { return this._KeyValueDiffers_31; } 394 | if ((token === import17.SharedStylesHost)) { return this._SharedStylesHost_32; } 395 | if ((token === import21.Title)) { return this._Title_33; } 396 | if ((token === import22.BrowserXhr)) { return this._BrowserXhr_34; } 397 | if ((token === import23.ResponseOptions)) { return this._ResponseOptions_35; } 398 | if ((token === import61.XSRFStrategy)) { return this._XSRFStrategy_36; } 399 | if ((token === import24.XHRBackend)) { return this._XHRBackend_37; } 400 | if ((token === import25.RequestOptions)) { return this._RequestOptions_38; } 401 | if ((token === import62.Http)) { return this._Http_39; } 402 | if ((token === import26.RadioControlRegistry)) { return this._RadioControlRegistry_40; } 403 | if ((token === import63.ROUTES)) { return this._ROUTES_41; } 404 | if ((token === import27.FlugService)) { return this._FlugService_42; } 405 | if ((token === import8.ROUTER_CONFIGURATION)) { return this._ROUTER_CONFIGURATION_43; } 406 | if ((token === import50.LocationStrategy)) { return this._LocationStrategy_44; } 407 | if ((token === import28.Location)) { return this._Location_45; } 408 | if ((token === import29.UrlSerializer)) { return this._UrlSerializer_46; } 409 | if ((token === import30.RouterOutletMap)) { return this._RouterOutletMap_47; } 410 | if ((token === import64.NgModuleFactoryLoader)) { return this._NgModuleFactoryLoader_48; } 411 | if ((token === import51.Router)) { return this._Router_49; } 412 | if ((token === import65.ActivatedRoute)) { return this._ActivatedRoute_50; } 413 | if ((token === import39.APP_BOOTSTRAP_LISTENER)) { return this._APP_BOOTSTRAP_LISTENER_51; } 414 | if ((token === import66.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_52; } 415 | return notFoundResult; 416 | } 417 | destroyInternal():void { 418 | this._ApplicationRef__15.ngOnDestroy(); 419 | } 420 | } 421 | export const AppModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(AppModuleInjector,import1.AppModule); -------------------------------------------------------------------------------- /aot/app/flug/flug-buchen/flug-buchen.component.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/render/api'; 8 | import * as import1 from '@angular/core/src/linker/view'; 9 | import * as import2 from '@angular/core/src/linker/element'; 10 | import * as import3 from '../../../../app/flug/flug-buchen/flug-buchen.component'; 11 | import * as import4 from '../../../../app/flug/services/flug.service'; 12 | import * as import5 from '@angular/core/src/linker/view_utils'; 13 | import * as import6 from '@angular/core/src/di/injector'; 14 | import * as import7 from '@angular/core/src/linker/view_type'; 15 | import * as import8 from '@angular/core/src/change_detection/change_detection'; 16 | import * as import9 from '@angular/http/src/http'; 17 | import * as import10 from '@angular/core/src/metadata/view'; 18 | import * as import11 from '@angular/core/src/linker/component_factory'; 19 | import * as import12 from '@angular/router/src/directives/router_link'; 20 | import * as import13 from '@angular/router/src/directives/router_outlet'; 21 | import * as import14 from '@angular/router/src/router'; 22 | import * as import15 from '@angular/router/src/router_state'; 23 | import * as import16 from '@angular/common/src/location/location_strategy'; 24 | import * as import17 from '@angular/router/src/router_outlet_map'; 25 | import * as import18 from '@angular/core/src/linker/component_factory_resolver'; 26 | import * as import19 from '@angular/core/src/security'; 27 | var renderType_FlugBuchenComponent_Host:import0.RenderComponentType = (null as any); 28 | class _View_FlugBuchenComponent_Host0 extends import1.AppView { 29 | _el_0:any; 30 | /*private*/ _appEl_0:import2.AppElement; 31 | _FlugBuchenComponent_0_4:import3.FlugBuchenComponent; 32 | __FlugService_0_5:import4.FlugService; 33 | constructor(viewUtils:import5.ViewUtils,parentInjector:import6.Injector,declarationEl:import2.AppElement) { 34 | super(_View_FlugBuchenComponent_Host0,renderType_FlugBuchenComponent_Host,import7.ViewType.HOST,viewUtils,parentInjector,declarationEl,import8.ChangeDetectorStatus.CheckAlways); 35 | } 36 | get _FlugService_0_5():import4.FlugService { 37 | if ((this.__FlugService_0_5 == (null as any))) { (this.__FlugService_0_5 = new import4.FlugService(this.parentInjector.get(import9.Http))); } 38 | return this.__FlugService_0_5; 39 | } 40 | createInternal(rootSelector:string):import2.AppElement { 41 | this._el_0 = this.selectOrCreateHostElement('ng-component',rootSelector,(null as any)); 42 | this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0); 43 | var compView_0:any = viewFactory_FlugBuchenComponent0(this.viewUtils,this.injector(0),this._appEl_0); 44 | this._FlugBuchenComponent_0_4 = new import3.FlugBuchenComponent(); 45 | this._appEl_0.initComponent(this._FlugBuchenComponent_0_4,[],compView_0); 46 | compView_0.create(this._FlugBuchenComponent_0_4,this.projectableNodes,(null as any)); 47 | this.init([].concat([this._el_0]),[this._el_0],[],[]); 48 | return this._appEl_0; 49 | } 50 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 51 | if (((token === import3.FlugBuchenComponent) && (0 === requestNodeIndex))) { return this._FlugBuchenComponent_0_4; } 52 | if (((token === import4.FlugService) && (0 === requestNodeIndex))) { return this._FlugService_0_5; } 53 | return notFoundResult; 54 | } 55 | } 56 | function viewFactory_FlugBuchenComponent_Host0(viewUtils:import5.ViewUtils,parentInjector:import6.Injector,declarationEl:import2.AppElement):import1.AppView { 57 | if ((renderType_FlugBuchenComponent_Host === (null as any))) { (renderType_FlugBuchenComponent_Host = viewUtils.createRenderComponentType('',0,import10.ViewEncapsulation.None,[],{})); } 58 | return new _View_FlugBuchenComponent_Host0(viewUtils,parentInjector,declarationEl); 59 | } 60 | export const FlugBuchenComponentNgFactory:import11.ComponentFactory = new import11.ComponentFactory('ng-component',viewFactory_FlugBuchenComponent_Host0,import3.FlugBuchenComponent); 61 | const styles_FlugBuchenComponent:any[] = []; 62 | var renderType_FlugBuchenComponent:import0.RenderComponentType = (null as any); 63 | class _View_FlugBuchenComponent0 extends import1.AppView { 64 | _text_0:any; 65 | _el_1:any; 66 | _text_2:any; 67 | _el_3:any; 68 | _text_4:any; 69 | _el_5:any; 70 | _el_6:any; 71 | _RouterLinkWithHref_6_3:import12.RouterLinkWithHref; 72 | _text_7:any; 73 | _text_8:any; 74 | _text_9:any; 75 | _el_10:any; 76 | _el_11:any; 77 | _RouterLinkWithHref_11_3:import12.RouterLinkWithHref; 78 | _text_12:any; 79 | _text_13:any; 80 | _text_14:any; 81 | _text_15:any; 82 | _el_16:any; 83 | _text_17:any; 84 | _el_18:any; 85 | /*private*/ _appEl_18:import2.AppElement; 86 | _RouterOutlet_18_5:import13.RouterOutlet; 87 | _text_19:any; 88 | _text_20:any; 89 | _arr_0:any; 90 | /*private*/ _expr_1:any; 91 | /*private*/ _expr_2:any; 92 | _arr_1:any; 93 | /*private*/ _expr_4:any; 94 | /*private*/ _expr_5:any; 95 | constructor(viewUtils:import5.ViewUtils,parentInjector:import6.Injector,declarationEl:import2.AppElement) { 96 | super(_View_FlugBuchenComponent0,renderType_FlugBuchenComponent,import7.ViewType.COMPONENT,viewUtils,parentInjector,declarationEl,import8.ChangeDetectorStatus.CheckAlways); 97 | } 98 | createInternal(rootSelector:string):import2.AppElement { 99 | const parentRenderNode:any = this.renderer.createViewRoot(this.declarationAppElement.nativeElement); 100 | this._text_0 = this.renderer.createText(parentRenderNode,'\n',(null as any)); 101 | this._el_1 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 102 | this.renderer.setElementAttribute(this._el_1,'class','col-sm-3'); 103 | this._text_2 = this.renderer.createText(this._el_1,'\n ',(null as any)); 104 | this._el_3 = this.renderer.createElement(this._el_1,'ul',(null as any)); 105 | this.renderer.setElementAttribute(this._el_3,'class','nav nav-pills nav-stacked'); 106 | this.renderer.setElementAttribute(this._el_3,'style','margin-top:20px;'); 107 | this._text_4 = this.renderer.createText(this._el_3,'\n ',(null as any)); 108 | this._el_5 = this.renderer.createElement(this._el_3,'li',(null as any)); 109 | this._el_6 = this.renderer.createElement(this._el_5,'a',(null as any)); 110 | this._RouterLinkWithHref_6_3 = new import12.RouterLinkWithHref(this.parentInjector.get(import14.Router),this.parentInjector.get(import15.ActivatedRoute),this.parentInjector.get(import16.LocationStrategy)); 111 | this._text_7 = this.renderer.createText(this._el_6,'Flug auswählen',(null as any)); 112 | this._text_8 = this.renderer.createText(this._el_3,'\n ',(null as any)); 113 | this._text_9 = this.renderer.createText(this._el_3,'\n ',(null as any)); 114 | this._el_10 = this.renderer.createElement(this._el_3,'li',(null as any)); 115 | this._el_11 = this.renderer.createElement(this._el_10,'a',(null as any)); 116 | this._RouterLinkWithHref_11_3 = new import12.RouterLinkWithHref(this.parentInjector.get(import14.Router),this.parentInjector.get(import15.ActivatedRoute),this.parentInjector.get(import16.LocationStrategy)); 117 | this._text_12 = this.renderer.createText(this._el_11,'Passagier auswählen',(null as any)); 118 | this._text_13 = this.renderer.createText(this._el_3,'\n ',(null as any)); 119 | this._text_14 = this.renderer.createText(this._el_1,'\n',(null as any)); 120 | this._text_15 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 121 | this._el_16 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 122 | this.renderer.setElementAttribute(this._el_16,'class','col-sm-9'); 123 | this._text_17 = this.renderer.createText(this._el_16,'\n ',(null as any)); 124 | this._el_18 = this.renderer.createElement(this._el_16,'router-outlet',(null as any)); 125 | this._appEl_18 = new import2.AppElement(18,16,this,this._el_18); 126 | this._RouterOutlet_18_5 = new import13.RouterOutlet(this.parentInjector.get(import17.RouterOutletMap),this._appEl_18.vcRef,this.parentInjector.get(import18.ComponentFactoryResolver),(null as any)); 127 | this._text_19 = this.renderer.createText(this._el_16,'\n',(null as any)); 128 | this._text_20 = this.renderer.createText(parentRenderNode,'\n',(null as any)); 129 | var disposable_0:Function = this.renderer.listen(this._el_6,'click',this.eventHandler(this._handle_click_6_0.bind(this))); 130 | this._arr_0 = import5.pureProxy1((p0:any):any[] => { 131 | return [p0]; 132 | }); 133 | this._expr_1 = import8.UNINITIALIZED; 134 | this._expr_2 = import8.UNINITIALIZED; 135 | var disposable_1:Function = this.renderer.listen(this._el_11,'click',this.eventHandler(this._handle_click_11_0.bind(this))); 136 | this._arr_1 = import5.pureProxy1((p0:any):any[] => { 137 | return [p0]; 138 | }); 139 | this._expr_4 = import8.UNINITIALIZED; 140 | this._expr_5 = import8.UNINITIALIZED; 141 | this.init([],[ 142 | this._text_0, 143 | this._el_1, 144 | this._text_2, 145 | this._el_3, 146 | this._text_4, 147 | this._el_5, 148 | this._el_6, 149 | this._text_7, 150 | this._text_8, 151 | this._text_9, 152 | this._el_10, 153 | this._el_11, 154 | this._text_12, 155 | this._text_13, 156 | this._text_14, 157 | this._text_15, 158 | this._el_16, 159 | this._text_17, 160 | this._el_18, 161 | this._text_19, 162 | this._text_20 163 | ] 164 | ,[ 165 | disposable_0, 166 | disposable_1 167 | ] 168 | ,[]); 169 | return (null as any); 170 | } 171 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 172 | if (((token === import12.RouterLinkWithHref) && ((6 <= requestNodeIndex) && (requestNodeIndex <= 7)))) { return this._RouterLinkWithHref_6_3; } 173 | if (((token === import12.RouterLinkWithHref) && ((11 <= requestNodeIndex) && (requestNodeIndex <= 12)))) { return this._RouterLinkWithHref_11_3; } 174 | if (((token === import13.RouterOutlet) && (18 === requestNodeIndex))) { return this._RouterOutlet_18_5; } 175 | return notFoundResult; 176 | } 177 | detectChangesInternal(throwOnChange:boolean):void { 178 | var changes:{[key: string]:import8.SimpleChange} = (null as any); 179 | changes = (null as any); 180 | const currVal_1:any = this._arr_0('flug-suchen'); 181 | if (import5.checkBinding(throwOnChange,this._expr_1,currVal_1)) { 182 | this._RouterLinkWithHref_6_3.routerLink = currVal_1; 183 | if ((changes === (null as any))) { (changes = {}); } 184 | changes['routerLink'] = new import8.SimpleChange(this._expr_1,currVal_1); 185 | this._expr_1 = currVal_1; 186 | } 187 | if ((changes !== (null as any))) { this._RouterLinkWithHref_6_3.ngOnChanges(changes); } 188 | changes = (null as any); 189 | const currVal_4:any = this._arr_1('passagier-suchen'); 190 | if (import5.checkBinding(throwOnChange,this._expr_4,currVal_4)) { 191 | this._RouterLinkWithHref_11_3.routerLink = currVal_4; 192 | if ((changes === (null as any))) { (changes = {}); } 193 | changes['routerLink'] = new import8.SimpleChange(this._expr_4,currVal_4); 194 | this._expr_4 = currVal_4; 195 | } 196 | if ((changes !== (null as any))) { this._RouterLinkWithHref_11_3.ngOnChanges(changes); } 197 | this.detectContentChildrenChanges(throwOnChange); 198 | const currVal_2:any = this._RouterLinkWithHref_6_3.href; 199 | if (import5.checkBinding(throwOnChange,this._expr_2,currVal_2)) { 200 | this.renderer.setElementProperty(this._el_6,'href',this.viewUtils.sanitizer.sanitize(import19.SecurityContext.URL,currVal_2)); 201 | this._expr_2 = currVal_2; 202 | } 203 | const currVal_5:any = this._RouterLinkWithHref_11_3.href; 204 | if (import5.checkBinding(throwOnChange,this._expr_5,currVal_5)) { 205 | this.renderer.setElementProperty(this._el_11,'href',this.viewUtils.sanitizer.sanitize(import19.SecurityContext.URL,currVal_5)); 206 | this._expr_5 = currVal_5; 207 | } 208 | this.detectViewChildrenChanges(throwOnChange); 209 | } 210 | destroyInternal():void { 211 | this._RouterLinkWithHref_6_3.ngOnDestroy(); 212 | this._RouterLinkWithHref_11_3.ngOnDestroy(); 213 | this._RouterOutlet_18_5.ngOnDestroy(); 214 | } 215 | private _handle_click_6_0($event:any):boolean { 216 | this.markPathToRootAsCheckOnce(); 217 | const pd_0:any = ((this._RouterLinkWithHref_6_3.onClick($event.button,$event.ctrlKey,$event.metaKey)) !== false); 218 | return (true && pd_0); 219 | } 220 | private _handle_click_11_0($event:any):boolean { 221 | this.markPathToRootAsCheckOnce(); 222 | const pd_0:any = ((this._RouterLinkWithHref_11_3.onClick($event.button,$event.ctrlKey,$event.metaKey)) !== false); 223 | return (true && pd_0); 224 | } 225 | } 226 | export function viewFactory_FlugBuchenComponent0(viewUtils:import5.ViewUtils,parentInjector:import6.Injector,declarationEl:import2.AppElement):import1.AppView { 227 | if ((renderType_FlugBuchenComponent === (null as any))) { (renderType_FlugBuchenComponent = viewUtils.createRenderComponentType('c:/Users/Manfred/Documents/artikel/Blog/angular2-aot/aot/app/flug/flug-buchen/flug-buchen.component.html',0,import10.ViewEncapsulation.None,styles_FlugBuchenComponent,{})); } 228 | return new _View_FlugBuchenComponent0(viewUtils,parentInjector,declarationEl); 229 | } -------------------------------------------------------------------------------- /aot/app/flug/flug-edit/flug-edit.component.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/render/api'; 8 | import * as import1 from '@angular/core/src/linker/view'; 9 | import * as import2 from '@angular/core/src/linker/element'; 10 | import * as import3 from '../../../../app/flug/flug-edit/flug-edit.component'; 11 | import * as import4 from '@angular/core/src/linker/view_utils'; 12 | import * as import5 from '@angular/core/src/di/injector'; 13 | import * as import6 from '@angular/core/src/linker/view_type'; 14 | import * as import7 from '@angular/core/src/change_detection/change_detection'; 15 | import * as import8 from '@angular/router/src/router_state'; 16 | import * as import9 from '../../../../app/flug/services/flug.service'; 17 | import * as import10 from '@angular/core/src/metadata/view'; 18 | import * as import11 from '@angular/core/src/linker/component_factory'; 19 | import * as import12 from '@angular/common/src/directives/ng_if'; 20 | import * as import13 from '@angular/forms/src/directives/default_value_accessor'; 21 | import * as import14 from '@angular/forms/src/directives/ng_model'; 22 | import * as import15 from '@angular/forms/src/directives/ng_control_status'; 23 | import * as import16 from '@angular/core/src/linker/template_ref'; 24 | import * as import17 from '@angular/core/src/linker/element_ref'; 25 | import * as import18 from '@angular/forms/src/directives/control_value_accessor'; 26 | import * as import19 from '@angular/forms/src/directives/ng_control'; 27 | var renderType_FlugEditComponent_Host:import0.RenderComponentType = (null as any); 28 | class _View_FlugEditComponent_Host0 extends import1.AppView { 29 | _el_0:any; 30 | /*private*/ _appEl_0:import2.AppElement; 31 | _FlugEditComponent_0_4:import3.FlugEditComponent; 32 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 33 | super(_View_FlugEditComponent_Host0,renderType_FlugEditComponent_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 34 | } 35 | createInternal(rootSelector:string):import2.AppElement { 36 | this._el_0 = this.selectOrCreateHostElement('ng-component',rootSelector,(null as any)); 37 | this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0); 38 | var compView_0:any = viewFactory_FlugEditComponent0(this.viewUtils,this.injector(0),this._appEl_0); 39 | this._FlugEditComponent_0_4 = new import3.FlugEditComponent(this.parentInjector.get(import8.ActivatedRoute),this.parentInjector.get(import9.FlugService)); 40 | this._appEl_0.initComponent(this._FlugEditComponent_0_4,[],compView_0); 41 | compView_0.create(this._FlugEditComponent_0_4,this.projectableNodes,(null as any)); 42 | this.init([].concat([this._el_0]),[this._el_0],[],[]); 43 | return this._appEl_0; 44 | } 45 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 46 | if (((token === import3.FlugEditComponent) && (0 === requestNodeIndex))) { return this._FlugEditComponent_0_4; } 47 | return notFoundResult; 48 | } 49 | } 50 | function viewFactory_FlugEditComponent_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 51 | if ((renderType_FlugEditComponent_Host === (null as any))) { (renderType_FlugEditComponent_Host = viewUtils.createRenderComponentType('',0,import10.ViewEncapsulation.None,[],{})); } 52 | return new _View_FlugEditComponent_Host0(viewUtils,parentInjector,declarationEl); 53 | } 54 | export const FlugEditComponentNgFactory:import11.ComponentFactory = new import11.ComponentFactory('ng-component',viewFactory_FlugEditComponent_Host0,import3.FlugEditComponent); 55 | const styles_FlugEditComponent:any[] = []; 56 | var renderType_FlugEditComponent:import0.RenderComponentType = (null as any); 57 | class _View_FlugEditComponent0 extends import1.AppView { 58 | _el_0:any; 59 | _text_1:any; 60 | _text_2:any; 61 | _anchor_3:any; 62 | /*private*/ _appEl_3:import2.AppElement; 63 | _TemplateRef_3_5:any; 64 | _NgIf_3_6:import12.NgIf; 65 | _text_4:any; 66 | _el_5:any; 67 | _text_6:any; 68 | _el_7:any; 69 | _text_8:any; 70 | _text_9:any; 71 | _el_10:any; 72 | _DefaultValueAccessor_10_3:import13.DefaultValueAccessor; 73 | _NG_VALUE_ACCESSOR_10_4:any[]; 74 | _NgModel_10_5:import14.NgModel; 75 | _NgControl_10_6:any; 76 | _NgControlStatus_10_7:import15.NgControlStatus; 77 | _text_11:any; 78 | _el_12:any; 79 | _text_13:any; 80 | _text_14:any; 81 | _text_15:any; 82 | _el_16:any; 83 | _text_17:any; 84 | _el_18:any; 85 | _text_19:any; 86 | _text_20:any; 87 | _el_21:any; 88 | _DefaultValueAccessor_21_3:import13.DefaultValueAccessor; 89 | _NG_VALUE_ACCESSOR_21_4:any[]; 90 | _NgModel_21_5:import14.NgModel; 91 | _NgControl_21_6:any; 92 | _NgControlStatus_21_7:import15.NgControlStatus; 93 | _text_22:any; 94 | _text_23:any; 95 | _el_24:any; 96 | _text_25:any; 97 | _el_26:any; 98 | _text_27:any; 99 | _text_28:any; 100 | _el_29:any; 101 | _DefaultValueAccessor_29_3:import13.DefaultValueAccessor; 102 | _NG_VALUE_ACCESSOR_29_4:any[]; 103 | _NgModel_29_5:import14.NgModel; 104 | _NgControl_29_6:any; 105 | _NgControlStatus_29_7:import15.NgControlStatus; 106 | _text_30:any; 107 | _text_31:any; 108 | _el_32:any; 109 | _text_33:any; 110 | _el_34:any; 111 | _text_35:any; 112 | _text_36:any; 113 | _el_37:any; 114 | _DefaultValueAccessor_37_3:import13.DefaultValueAccessor; 115 | _NG_VALUE_ACCESSOR_37_4:any[]; 116 | _NgModel_37_5:import14.NgModel; 117 | _NgControl_37_6:any; 118 | _NgControlStatus_37_7:import15.NgControlStatus; 119 | _text_38:any; 120 | _text_39:any; 121 | _el_40:any; 122 | _text_41:any; 123 | _el_42:any; 124 | _text_43:any; 125 | _text_44:any; 126 | /*private*/ _expr_0:any; 127 | /*private*/ _expr_4:any; 128 | /*private*/ _expr_5:any; 129 | /*private*/ _expr_6:any; 130 | /*private*/ _expr_7:any; 131 | /*private*/ _expr_8:any; 132 | /*private*/ _expr_9:any; 133 | /*private*/ _expr_10:any; 134 | /*private*/ _expr_14:any; 135 | /*private*/ _expr_15:any; 136 | /*private*/ _expr_16:any; 137 | /*private*/ _expr_17:any; 138 | /*private*/ _expr_18:any; 139 | /*private*/ _expr_19:any; 140 | /*private*/ _expr_20:any; 141 | /*private*/ _expr_24:any; 142 | /*private*/ _expr_25:any; 143 | /*private*/ _expr_26:any; 144 | /*private*/ _expr_27:any; 145 | /*private*/ _expr_28:any; 146 | /*private*/ _expr_29:any; 147 | /*private*/ _expr_30:any; 148 | /*private*/ _expr_34:any; 149 | /*private*/ _expr_35:any; 150 | /*private*/ _expr_36:any; 151 | /*private*/ _expr_37:any; 152 | /*private*/ _expr_38:any; 153 | /*private*/ _expr_39:any; 154 | /*private*/ _expr_40:any; 155 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 156 | super(_View_FlugEditComponent0,renderType_FlugEditComponent,import6.ViewType.COMPONENT,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 157 | } 158 | createInternal(rootSelector:string):import2.AppElement { 159 | const parentRenderNode:any = this.renderer.createViewRoot(this.declarationAppElement.nativeElement); 160 | this._el_0 = this.renderer.createElement(parentRenderNode,'h1',(null as any)); 161 | this._text_1 = this.renderer.createText(this._el_0,'FlugEdit',(null as any)); 162 | this._text_2 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 163 | this._anchor_3 = this.renderer.createTemplateAnchor(parentRenderNode,(null as any)); 164 | this._appEl_3 = new import2.AppElement(3,(null as any),this,this._anchor_3); 165 | this._TemplateRef_3_5 = new import16.TemplateRef_(this._appEl_3,viewFactory_FlugEditComponent1); 166 | this._NgIf_3_6 = new import12.NgIf(this._appEl_3.vcRef,this._TemplateRef_3_5); 167 | this._text_4 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 168 | this._el_5 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 169 | this.renderer.setElementAttribute(this._el_5,'class','form-group'); 170 | this._text_6 = this.renderer.createText(this._el_5,'\n ',(null as any)); 171 | this._el_7 = this.renderer.createElement(this._el_5,'label',(null as any)); 172 | this._text_8 = this.renderer.createText(this._el_7,'Id',(null as any)); 173 | this._text_9 = this.renderer.createText(this._el_5,'\n ',(null as any)); 174 | this._el_10 = this.renderer.createElement(this._el_5,'input',(null as any)); 175 | this.renderer.setElementAttribute(this._el_10,'class','form-control'); 176 | this._DefaultValueAccessor_10_3 = new import13.DefaultValueAccessor(this.renderer,new import17.ElementRef(this._el_10)); 177 | this._NG_VALUE_ACCESSOR_10_4 = [this._DefaultValueAccessor_10_3]; 178 | this._NgModel_10_5 = new import14.NgModel((null as any),(null as any),(null as any),this._NG_VALUE_ACCESSOR_10_4); 179 | this._NgControl_10_6 = this._NgModel_10_5; 180 | this._NgControlStatus_10_7 = new import15.NgControlStatus(this._NgControl_10_6); 181 | this._text_11 = this.renderer.createText(this._el_5,'\n ',(null as any)); 182 | this._el_12 = this.renderer.createElement(this._el_5,'div',(null as any)); 183 | this._text_13 = this.renderer.createText(this._el_12,'Leere Id oder 0 für neuen Datensatz',(null as any)); 184 | this._text_14 = this.renderer.createText(this._el_5,'\n',(null as any)); 185 | this._text_15 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 186 | this._el_16 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 187 | this.renderer.setElementAttribute(this._el_16,'class','form-group'); 188 | this._text_17 = this.renderer.createText(this._el_16,'\n ',(null as any)); 189 | this._el_18 = this.renderer.createElement(this._el_16,'label',(null as any)); 190 | this._text_19 = this.renderer.createText(this._el_18,'Von',(null as any)); 191 | this._text_20 = this.renderer.createText(this._el_16,'\n ',(null as any)); 192 | this._el_21 = this.renderer.createElement(this._el_16,'input',(null as any)); 193 | this.renderer.setElementAttribute(this._el_21,'class','form-control'); 194 | this._DefaultValueAccessor_21_3 = new import13.DefaultValueAccessor(this.renderer,new import17.ElementRef(this._el_21)); 195 | this._NG_VALUE_ACCESSOR_21_4 = [this._DefaultValueAccessor_21_3]; 196 | this._NgModel_21_5 = new import14.NgModel((null as any),(null as any),(null as any),this._NG_VALUE_ACCESSOR_21_4); 197 | this._NgControl_21_6 = this._NgModel_21_5; 198 | this._NgControlStatus_21_7 = new import15.NgControlStatus(this._NgControl_21_6); 199 | this._text_22 = this.renderer.createText(this._el_16,'\n',(null as any)); 200 | this._text_23 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 201 | this._el_24 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 202 | this.renderer.setElementAttribute(this._el_24,'class','form-group'); 203 | this._text_25 = this.renderer.createText(this._el_24,'\n ',(null as any)); 204 | this._el_26 = this.renderer.createElement(this._el_24,'label',(null as any)); 205 | this._text_27 = this.renderer.createText(this._el_26,'Von',(null as any)); 206 | this._text_28 = this.renderer.createText(this._el_24,'\n ',(null as any)); 207 | this._el_29 = this.renderer.createElement(this._el_24,'input',(null as any)); 208 | this.renderer.setElementAttribute(this._el_29,'class','form-control'); 209 | this._DefaultValueAccessor_29_3 = new import13.DefaultValueAccessor(this.renderer,new import17.ElementRef(this._el_29)); 210 | this._NG_VALUE_ACCESSOR_29_4 = [this._DefaultValueAccessor_29_3]; 211 | this._NgModel_29_5 = new import14.NgModel((null as any),(null as any),(null as any),this._NG_VALUE_ACCESSOR_29_4); 212 | this._NgControl_29_6 = this._NgModel_29_5; 213 | this._NgControlStatus_29_7 = new import15.NgControlStatus(this._NgControl_29_6); 214 | this._text_30 = this.renderer.createText(this._el_24,'\n',(null as any)); 215 | this._text_31 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 216 | this._el_32 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 217 | this.renderer.setElementAttribute(this._el_32,'class','form-group'); 218 | this._text_33 = this.renderer.createText(this._el_32,'\n ',(null as any)); 219 | this._el_34 = this.renderer.createElement(this._el_32,'label',(null as any)); 220 | this._text_35 = this.renderer.createText(this._el_34,'Datum',(null as any)); 221 | this._text_36 = this.renderer.createText(this._el_32,'\n ',(null as any)); 222 | this._el_37 = this.renderer.createElement(this._el_32,'input',(null as any)); 223 | this.renderer.setElementAttribute(this._el_37,'class','form-control'); 224 | this._DefaultValueAccessor_37_3 = new import13.DefaultValueAccessor(this.renderer,new import17.ElementRef(this._el_37)); 225 | this._NG_VALUE_ACCESSOR_37_4 = [this._DefaultValueAccessor_37_3]; 226 | this._NgModel_37_5 = new import14.NgModel((null as any),(null as any),(null as any),this._NG_VALUE_ACCESSOR_37_4); 227 | this._NgControl_37_6 = this._NgModel_37_5; 228 | this._NgControlStatus_37_7 = new import15.NgControlStatus(this._NgControl_37_6); 229 | this._text_38 = this.renderer.createText(this._el_32,'\n',(null as any)); 230 | this._text_39 = this.renderer.createText(parentRenderNode,'\n\n',(null as any)); 231 | this._el_40 = this.renderer.createElement(parentRenderNode,'div',(null as any)); 232 | this.renderer.setElementAttribute(this._el_40,'class','form-group'); 233 | this._text_41 = this.renderer.createText(this._el_40,'\n ',(null as any)); 234 | this._el_42 = this.renderer.createElement(this._el_40,'button',(null as any)); 235 | this.renderer.setElementAttribute(this._el_42,'class','btn btn-primary'); 236 | this._text_43 = this.renderer.createText(this._el_42,'Speichern',(null as any)); 237 | this._text_44 = this.renderer.createText(this._el_40,'\n',(null as any)); 238 | this._expr_0 = import7.UNINITIALIZED; 239 | var disposable_0:Function = this.renderer.listen(this._el_10,'ngModelChange',this.eventHandler(this._handle_ngModelChange_10_0.bind(this))); 240 | var disposable_1:Function = this.renderer.listen(this._el_10,'input',this.eventHandler(this._handle_input_10_1.bind(this))); 241 | var disposable_2:Function = this.renderer.listen(this._el_10,'blur',this.eventHandler(this._handle_blur_10_2.bind(this))); 242 | this._expr_4 = import7.UNINITIALIZED; 243 | const subscription_0:any = this._NgModel_10_5.update.subscribe(this.eventHandler(this._handle_ngModelChange_10_0.bind(this))); 244 | this._expr_5 = import7.UNINITIALIZED; 245 | this._expr_6 = import7.UNINITIALIZED; 246 | this._expr_7 = import7.UNINITIALIZED; 247 | this._expr_8 = import7.UNINITIALIZED; 248 | this._expr_9 = import7.UNINITIALIZED; 249 | this._expr_10 = import7.UNINITIALIZED; 250 | var disposable_3:Function = this.renderer.listen(this._el_21,'ngModelChange',this.eventHandler(this._handle_ngModelChange_21_0.bind(this))); 251 | var disposable_4:Function = this.renderer.listen(this._el_21,'input',this.eventHandler(this._handle_input_21_1.bind(this))); 252 | var disposable_5:Function = this.renderer.listen(this._el_21,'blur',this.eventHandler(this._handle_blur_21_2.bind(this))); 253 | this._expr_14 = import7.UNINITIALIZED; 254 | const subscription_1:any = this._NgModel_21_5.update.subscribe(this.eventHandler(this._handle_ngModelChange_21_0.bind(this))); 255 | this._expr_15 = import7.UNINITIALIZED; 256 | this._expr_16 = import7.UNINITIALIZED; 257 | this._expr_17 = import7.UNINITIALIZED; 258 | this._expr_18 = import7.UNINITIALIZED; 259 | this._expr_19 = import7.UNINITIALIZED; 260 | this._expr_20 = import7.UNINITIALIZED; 261 | var disposable_6:Function = this.renderer.listen(this._el_29,'ngModelChange',this.eventHandler(this._handle_ngModelChange_29_0.bind(this))); 262 | var disposable_7:Function = this.renderer.listen(this._el_29,'input',this.eventHandler(this._handle_input_29_1.bind(this))); 263 | var disposable_8:Function = this.renderer.listen(this._el_29,'blur',this.eventHandler(this._handle_blur_29_2.bind(this))); 264 | this._expr_24 = import7.UNINITIALIZED; 265 | const subscription_2:any = this._NgModel_29_5.update.subscribe(this.eventHandler(this._handle_ngModelChange_29_0.bind(this))); 266 | this._expr_25 = import7.UNINITIALIZED; 267 | this._expr_26 = import7.UNINITIALIZED; 268 | this._expr_27 = import7.UNINITIALIZED; 269 | this._expr_28 = import7.UNINITIALIZED; 270 | this._expr_29 = import7.UNINITIALIZED; 271 | this._expr_30 = import7.UNINITIALIZED; 272 | var disposable_9:Function = this.renderer.listen(this._el_37,'ngModelChange',this.eventHandler(this._handle_ngModelChange_37_0.bind(this))); 273 | var disposable_10:Function = this.renderer.listen(this._el_37,'input',this.eventHandler(this._handle_input_37_1.bind(this))); 274 | var disposable_11:Function = this.renderer.listen(this._el_37,'blur',this.eventHandler(this._handle_blur_37_2.bind(this))); 275 | this._expr_34 = import7.UNINITIALIZED; 276 | const subscription_3:any = this._NgModel_37_5.update.subscribe(this.eventHandler(this._handle_ngModelChange_37_0.bind(this))); 277 | this._expr_35 = import7.UNINITIALIZED; 278 | this._expr_36 = import7.UNINITIALIZED; 279 | this._expr_37 = import7.UNINITIALIZED; 280 | this._expr_38 = import7.UNINITIALIZED; 281 | this._expr_39 = import7.UNINITIALIZED; 282 | this._expr_40 = import7.UNINITIALIZED; 283 | var disposable_12:Function = this.renderer.listen(this._el_42,'click',this.eventHandler(this._handle_click_42_0.bind(this))); 284 | this.init([],[ 285 | this._el_0, 286 | this._text_1, 287 | this._text_2, 288 | this._anchor_3, 289 | this._text_4, 290 | this._el_5, 291 | this._text_6, 292 | this._el_7, 293 | this._text_8, 294 | this._text_9, 295 | this._el_10, 296 | this._text_11, 297 | this._el_12, 298 | this._text_13, 299 | this._text_14, 300 | this._text_15, 301 | this._el_16, 302 | this._text_17, 303 | this._el_18, 304 | this._text_19, 305 | this._text_20, 306 | this._el_21, 307 | this._text_22, 308 | this._text_23, 309 | this._el_24, 310 | this._text_25, 311 | this._el_26, 312 | this._text_27, 313 | this._text_28, 314 | this._el_29, 315 | this._text_30, 316 | this._text_31, 317 | this._el_32, 318 | this._text_33, 319 | this._el_34, 320 | this._text_35, 321 | this._text_36, 322 | this._el_37, 323 | this._text_38, 324 | this._text_39, 325 | this._el_40, 326 | this._text_41, 327 | this._el_42, 328 | this._text_43, 329 | this._text_44 330 | ] 331 | ,[ 332 | disposable_0, 333 | disposable_1, 334 | disposable_2, 335 | disposable_3, 336 | disposable_4, 337 | disposable_5, 338 | disposable_6, 339 | disposable_7, 340 | disposable_8, 341 | disposable_9, 342 | disposable_10, 343 | disposable_11, 344 | disposable_12 345 | ] 346 | ,[ 347 | subscription_0, 348 | subscription_1, 349 | subscription_2, 350 | subscription_3 351 | ] 352 | ); 353 | return (null as any); 354 | } 355 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 356 | if (((token === import16.TemplateRef) && (3 === requestNodeIndex))) { return this._TemplateRef_3_5; } 357 | if (((token === import12.NgIf) && (3 === requestNodeIndex))) { return this._NgIf_3_6; } 358 | if (((token === import13.DefaultValueAccessor) && (10 === requestNodeIndex))) { return this._DefaultValueAccessor_10_3; } 359 | if (((token === import18.NG_VALUE_ACCESSOR) && (10 === requestNodeIndex))) { return this._NG_VALUE_ACCESSOR_10_4; } 360 | if (((token === import14.NgModel) && (10 === requestNodeIndex))) { return this._NgModel_10_5; } 361 | if (((token === import19.NgControl) && (10 === requestNodeIndex))) { return this._NgControl_10_6; } 362 | if (((token === import15.NgControlStatus) && (10 === requestNodeIndex))) { return this._NgControlStatus_10_7; } 363 | if (((token === import13.DefaultValueAccessor) && (21 === requestNodeIndex))) { return this._DefaultValueAccessor_21_3; } 364 | if (((token === import18.NG_VALUE_ACCESSOR) && (21 === requestNodeIndex))) { return this._NG_VALUE_ACCESSOR_21_4; } 365 | if (((token === import14.NgModel) && (21 === requestNodeIndex))) { return this._NgModel_21_5; } 366 | if (((token === import19.NgControl) && (21 === requestNodeIndex))) { return this._NgControl_21_6; } 367 | if (((token === import15.NgControlStatus) && (21 === requestNodeIndex))) { return this._NgControlStatus_21_7; } 368 | if (((token === import13.DefaultValueAccessor) && (29 === requestNodeIndex))) { return this._DefaultValueAccessor_29_3; } 369 | if (((token === import18.NG_VALUE_ACCESSOR) && (29 === requestNodeIndex))) { return this._NG_VALUE_ACCESSOR_29_4; } 370 | if (((token === import14.NgModel) && (29 === requestNodeIndex))) { return this._NgModel_29_5; } 371 | if (((token === import19.NgControl) && (29 === requestNodeIndex))) { return this._NgControl_29_6; } 372 | if (((token === import15.NgControlStatus) && (29 === requestNodeIndex))) { return this._NgControlStatus_29_7; } 373 | if (((token === import13.DefaultValueAccessor) && (37 === requestNodeIndex))) { return this._DefaultValueAccessor_37_3; } 374 | if (((token === import18.NG_VALUE_ACCESSOR) && (37 === requestNodeIndex))) { return this._NG_VALUE_ACCESSOR_37_4; } 375 | if (((token === import14.NgModel) && (37 === requestNodeIndex))) { return this._NgModel_37_5; } 376 | if (((token === import19.NgControl) && (37 === requestNodeIndex))) { return this._NgControl_37_6; } 377 | if (((token === import15.NgControlStatus) && (37 === requestNodeIndex))) { return this._NgControlStatus_37_7; } 378 | return notFoundResult; 379 | } 380 | detectChangesInternal(throwOnChange:boolean):void { 381 | var changes:{[key: string]:import7.SimpleChange} = (null as any); 382 | const currVal_0:any = this.context.message; 383 | if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) { 384 | this._NgIf_3_6.ngIf = currVal_0; 385 | this._expr_0 = currVal_0; 386 | } 387 | changes = (null as any); 388 | const currVal_4:any = this.context.flug.id; 389 | if (import4.checkBinding(throwOnChange,this._expr_4,currVal_4)) { 390 | this._NgModel_10_5.model = currVal_4; 391 | if ((changes === (null as any))) { (changes = {}); } 392 | changes['model'] = new import7.SimpleChange(this._expr_4,currVal_4); 393 | this._expr_4 = currVal_4; 394 | } 395 | if ((changes !== (null as any))) { this._NgModel_10_5.ngOnChanges(changes); } 396 | changes = (null as any); 397 | const currVal_14:any = this.context.flug.abflugort; 398 | if (import4.checkBinding(throwOnChange,this._expr_14,currVal_14)) { 399 | this._NgModel_21_5.model = currVal_14; 400 | if ((changes === (null as any))) { (changes = {}); } 401 | changes['model'] = new import7.SimpleChange(this._expr_14,currVal_14); 402 | this._expr_14 = currVal_14; 403 | } 404 | if ((changes !== (null as any))) { this._NgModel_21_5.ngOnChanges(changes); } 405 | changes = (null as any); 406 | const currVal_24:any = this.context.flug.zielort; 407 | if (import4.checkBinding(throwOnChange,this._expr_24,currVal_24)) { 408 | this._NgModel_29_5.model = currVal_24; 409 | if ((changes === (null as any))) { (changes = {}); } 410 | changes['model'] = new import7.SimpleChange(this._expr_24,currVal_24); 411 | this._expr_24 = currVal_24; 412 | } 413 | if ((changes !== (null as any))) { this._NgModel_29_5.ngOnChanges(changes); } 414 | changes = (null as any); 415 | const currVal_34:any = this.context.flug.datum; 416 | if (import4.checkBinding(throwOnChange,this._expr_34,currVal_34)) { 417 | this._NgModel_37_5.model = currVal_34; 418 | if ((changes === (null as any))) { (changes = {}); } 419 | changes['model'] = new import7.SimpleChange(this._expr_34,currVal_34); 420 | this._expr_34 = currVal_34; 421 | } 422 | if ((changes !== (null as any))) { this._NgModel_37_5.ngOnChanges(changes); } 423 | this.detectContentChildrenChanges(throwOnChange); 424 | const currVal_5:any = this._NgControlStatus_10_7.ngClassUntouched; 425 | if (import4.checkBinding(throwOnChange,this._expr_5,currVal_5)) { 426 | this.renderer.setElementClass(this._el_10,'ng-untouched',currVal_5); 427 | this._expr_5 = currVal_5; 428 | } 429 | const currVal_6:any = this._NgControlStatus_10_7.ngClassTouched; 430 | if (import4.checkBinding(throwOnChange,this._expr_6,currVal_6)) { 431 | this.renderer.setElementClass(this._el_10,'ng-touched',currVal_6); 432 | this._expr_6 = currVal_6; 433 | } 434 | const currVal_7:any = this._NgControlStatus_10_7.ngClassPristine; 435 | if (import4.checkBinding(throwOnChange,this._expr_7,currVal_7)) { 436 | this.renderer.setElementClass(this._el_10,'ng-pristine',currVal_7); 437 | this._expr_7 = currVal_7; 438 | } 439 | const currVal_8:any = this._NgControlStatus_10_7.ngClassDirty; 440 | if (import4.checkBinding(throwOnChange,this._expr_8,currVal_8)) { 441 | this.renderer.setElementClass(this._el_10,'ng-dirty',currVal_8); 442 | this._expr_8 = currVal_8; 443 | } 444 | const currVal_9:any = this._NgControlStatus_10_7.ngClassValid; 445 | if (import4.checkBinding(throwOnChange,this._expr_9,currVal_9)) { 446 | this.renderer.setElementClass(this._el_10,'ng-valid',currVal_9); 447 | this._expr_9 = currVal_9; 448 | } 449 | const currVal_10:any = this._NgControlStatus_10_7.ngClassInvalid; 450 | if (import4.checkBinding(throwOnChange,this._expr_10,currVal_10)) { 451 | this.renderer.setElementClass(this._el_10,'ng-invalid',currVal_10); 452 | this._expr_10 = currVal_10; 453 | } 454 | const currVal_15:any = this._NgControlStatus_21_7.ngClassUntouched; 455 | if (import4.checkBinding(throwOnChange,this._expr_15,currVal_15)) { 456 | this.renderer.setElementClass(this._el_21,'ng-untouched',currVal_15); 457 | this._expr_15 = currVal_15; 458 | } 459 | const currVal_16:any = this._NgControlStatus_21_7.ngClassTouched; 460 | if (import4.checkBinding(throwOnChange,this._expr_16,currVal_16)) { 461 | this.renderer.setElementClass(this._el_21,'ng-touched',currVal_16); 462 | this._expr_16 = currVal_16; 463 | } 464 | const currVal_17:any = this._NgControlStatus_21_7.ngClassPristine; 465 | if (import4.checkBinding(throwOnChange,this._expr_17,currVal_17)) { 466 | this.renderer.setElementClass(this._el_21,'ng-pristine',currVal_17); 467 | this._expr_17 = currVal_17; 468 | } 469 | const currVal_18:any = this._NgControlStatus_21_7.ngClassDirty; 470 | if (import4.checkBinding(throwOnChange,this._expr_18,currVal_18)) { 471 | this.renderer.setElementClass(this._el_21,'ng-dirty',currVal_18); 472 | this._expr_18 = currVal_18; 473 | } 474 | const currVal_19:any = this._NgControlStatus_21_7.ngClassValid; 475 | if (import4.checkBinding(throwOnChange,this._expr_19,currVal_19)) { 476 | this.renderer.setElementClass(this._el_21,'ng-valid',currVal_19); 477 | this._expr_19 = currVal_19; 478 | } 479 | const currVal_20:any = this._NgControlStatus_21_7.ngClassInvalid; 480 | if (import4.checkBinding(throwOnChange,this._expr_20,currVal_20)) { 481 | this.renderer.setElementClass(this._el_21,'ng-invalid',currVal_20); 482 | this._expr_20 = currVal_20; 483 | } 484 | const currVal_25:any = this._NgControlStatus_29_7.ngClassUntouched; 485 | if (import4.checkBinding(throwOnChange,this._expr_25,currVal_25)) { 486 | this.renderer.setElementClass(this._el_29,'ng-untouched',currVal_25); 487 | this._expr_25 = currVal_25; 488 | } 489 | const currVal_26:any = this._NgControlStatus_29_7.ngClassTouched; 490 | if (import4.checkBinding(throwOnChange,this._expr_26,currVal_26)) { 491 | this.renderer.setElementClass(this._el_29,'ng-touched',currVal_26); 492 | this._expr_26 = currVal_26; 493 | } 494 | const currVal_27:any = this._NgControlStatus_29_7.ngClassPristine; 495 | if (import4.checkBinding(throwOnChange,this._expr_27,currVal_27)) { 496 | this.renderer.setElementClass(this._el_29,'ng-pristine',currVal_27); 497 | this._expr_27 = currVal_27; 498 | } 499 | const currVal_28:any = this._NgControlStatus_29_7.ngClassDirty; 500 | if (import4.checkBinding(throwOnChange,this._expr_28,currVal_28)) { 501 | this.renderer.setElementClass(this._el_29,'ng-dirty',currVal_28); 502 | this._expr_28 = currVal_28; 503 | } 504 | const currVal_29:any = this._NgControlStatus_29_7.ngClassValid; 505 | if (import4.checkBinding(throwOnChange,this._expr_29,currVal_29)) { 506 | this.renderer.setElementClass(this._el_29,'ng-valid',currVal_29); 507 | this._expr_29 = currVal_29; 508 | } 509 | const currVal_30:any = this._NgControlStatus_29_7.ngClassInvalid; 510 | if (import4.checkBinding(throwOnChange,this._expr_30,currVal_30)) { 511 | this.renderer.setElementClass(this._el_29,'ng-invalid',currVal_30); 512 | this._expr_30 = currVal_30; 513 | } 514 | const currVal_35:any = this._NgControlStatus_37_7.ngClassUntouched; 515 | if (import4.checkBinding(throwOnChange,this._expr_35,currVal_35)) { 516 | this.renderer.setElementClass(this._el_37,'ng-untouched',currVal_35); 517 | this._expr_35 = currVal_35; 518 | } 519 | const currVal_36:any = this._NgControlStatus_37_7.ngClassTouched; 520 | if (import4.checkBinding(throwOnChange,this._expr_36,currVal_36)) { 521 | this.renderer.setElementClass(this._el_37,'ng-touched',currVal_36); 522 | this._expr_36 = currVal_36; 523 | } 524 | const currVal_37:any = this._NgControlStatus_37_7.ngClassPristine; 525 | if (import4.checkBinding(throwOnChange,this._expr_37,currVal_37)) { 526 | this.renderer.setElementClass(this._el_37,'ng-pristine',currVal_37); 527 | this._expr_37 = currVal_37; 528 | } 529 | const currVal_38:any = this._NgControlStatus_37_7.ngClassDirty; 530 | if (import4.checkBinding(throwOnChange,this._expr_38,currVal_38)) { 531 | this.renderer.setElementClass(this._el_37,'ng-dirty',currVal_38); 532 | this._expr_38 = currVal_38; 533 | } 534 | const currVal_39:any = this._NgControlStatus_37_7.ngClassValid; 535 | if (import4.checkBinding(throwOnChange,this._expr_39,currVal_39)) { 536 | this.renderer.setElementClass(this._el_37,'ng-valid',currVal_39); 537 | this._expr_39 = currVal_39; 538 | } 539 | const currVal_40:any = this._NgControlStatus_37_7.ngClassInvalid; 540 | if (import4.checkBinding(throwOnChange,this._expr_40,currVal_40)) { 541 | this.renderer.setElementClass(this._el_37,'ng-invalid',currVal_40); 542 | this._expr_40 = currVal_40; 543 | } 544 | this.detectViewChildrenChanges(throwOnChange); 545 | } 546 | destroyInternal():void { 547 | this._NgModel_10_5.ngOnDestroy(); 548 | this._NgModel_21_5.ngOnDestroy(); 549 | this._NgModel_29_5.ngOnDestroy(); 550 | this._NgModel_37_5.ngOnDestroy(); 551 | } 552 | private _handle_ngModelChange_10_0($event:any):boolean { 553 | this.markPathToRootAsCheckOnce(); 554 | const pd_0:any = (((this.context.flug.id = $event)) !== false); 555 | return (true && pd_0); 556 | } 557 | private _handle_input_10_1($event:any):boolean { 558 | this.markPathToRootAsCheckOnce(); 559 | const pd_0:any = ((this._DefaultValueAccessor_10_3.onChange($event.target.value)) !== false); 560 | return (true && pd_0); 561 | } 562 | private _handle_blur_10_2($event:any):boolean { 563 | this.markPathToRootAsCheckOnce(); 564 | const pd_0:any = ((this._DefaultValueAccessor_10_3.onTouched()) !== false); 565 | return (true && pd_0); 566 | } 567 | private _handle_ngModelChange_21_0($event:any):boolean { 568 | this.markPathToRootAsCheckOnce(); 569 | const pd_0:any = (((this.context.flug.abflugort = $event)) !== false); 570 | return (true && pd_0); 571 | } 572 | private _handle_input_21_1($event:any):boolean { 573 | this.markPathToRootAsCheckOnce(); 574 | const pd_0:any = ((this._DefaultValueAccessor_21_3.onChange($event.target.value)) !== false); 575 | return (true && pd_0); 576 | } 577 | private _handle_blur_21_2($event:any):boolean { 578 | this.markPathToRootAsCheckOnce(); 579 | const pd_0:any = ((this._DefaultValueAccessor_21_3.onTouched()) !== false); 580 | return (true && pd_0); 581 | } 582 | private _handle_ngModelChange_29_0($event:any):boolean { 583 | this.markPathToRootAsCheckOnce(); 584 | const pd_0:any = (((this.context.flug.zielort = $event)) !== false); 585 | return (true && pd_0); 586 | } 587 | private _handle_input_29_1($event:any):boolean { 588 | this.markPathToRootAsCheckOnce(); 589 | const pd_0:any = ((this._DefaultValueAccessor_29_3.onChange($event.target.value)) !== false); 590 | return (true && pd_0); 591 | } 592 | private _handle_blur_29_2($event:any):boolean { 593 | this.markPathToRootAsCheckOnce(); 594 | const pd_0:any = ((this._DefaultValueAccessor_29_3.onTouched()) !== false); 595 | return (true && pd_0); 596 | } 597 | private _handle_ngModelChange_37_0($event:any):boolean { 598 | this.markPathToRootAsCheckOnce(); 599 | const pd_0:any = (((this.context.flug.datum = $event)) !== false); 600 | return (true && pd_0); 601 | } 602 | private _handle_input_37_1($event:any):boolean { 603 | this.markPathToRootAsCheckOnce(); 604 | const pd_0:any = ((this._DefaultValueAccessor_37_3.onChange($event.target.value)) !== false); 605 | return (true && pd_0); 606 | } 607 | private _handle_blur_37_2($event:any):boolean { 608 | this.markPathToRootAsCheckOnce(); 609 | const pd_0:any = ((this._DefaultValueAccessor_37_3.onTouched()) !== false); 610 | return (true && pd_0); 611 | } 612 | private _handle_click_42_0($event:any):boolean { 613 | this.markPathToRootAsCheckOnce(); 614 | const pd_0:any = ((this.context.save()) !== false); 615 | return (true && pd_0); 616 | } 617 | } 618 | export function viewFactory_FlugEditComponent0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 619 | if ((renderType_FlugEditComponent === (null as any))) { (renderType_FlugEditComponent = viewUtils.createRenderComponentType('c:/Users/Manfred/Documents/artikel/Blog/angular2-aot/aot/app/flug/flug-edit/flug-edit.component.html',0,import10.ViewEncapsulation.None,styles_FlugEditComponent,{})); } 620 | return new _View_FlugEditComponent0(viewUtils,parentInjector,declarationEl); 621 | } 622 | class _View_FlugEditComponent1 extends import1.AppView { 623 | _el_0:any; 624 | _text_1:any; 625 | /*private*/ _expr_0:any; 626 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 627 | super(_View_FlugEditComponent1,renderType_FlugEditComponent,import6.ViewType.EMBEDDED,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 628 | } 629 | createInternal(rootSelector:string):import2.AppElement { 630 | this._el_0 = this.renderer.createElement((null as any),'div',(null as any)); 631 | this.renderer.setElementAttribute(this._el_0,'style','color:red; font-weight: bold'); 632 | this._text_1 = this.renderer.createText(this._el_0,'',(null as any)); 633 | this._expr_0 = import7.UNINITIALIZED; 634 | this.init([].concat([this._el_0]),[ 635 | this._el_0, 636 | this._text_1 637 | ] 638 | ,[],[]); 639 | return (null as any); 640 | } 641 | detectChangesInternal(throwOnChange:boolean):void { 642 | this.detectContentChildrenChanges(throwOnChange); 643 | const currVal_0:any = import4.interpolate(1,'\n ',this.parent.context.message,'\n'); 644 | if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) { 645 | this.renderer.setText(this._text_1,currVal_0); 646 | this._expr_0 = currVal_0; 647 | } 648 | this.detectViewChildrenChanges(throwOnChange); 649 | } 650 | } 651 | function viewFactory_FlugEditComponent1(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 652 | return new _View_FlugEditComponent1(viewUtils,parentInjector,declarationEl); 653 | } -------------------------------------------------------------------------------- /aot/app/flug/flug-suchen/flug-suchen.component.css.shim.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | export const styles:any[] = ['input.ng-invalid[_ngcontent-%COMP%] {\r\n border-left-color: deeppink;\r\n border-left-style: solid;\r\n border-left-width: 5px;\r\n}\r\n\r\ninput.ng-valid[_ngcontent-%COMP%] {\r\n border-left-color: chartreuse;\r\n border-left-style: solid;\r\n border-left-width: 5px;\r\n}']; -------------------------------------------------------------------------------- /aot/app/flug/flug.module.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '../../../app/flug/flug.module'; 9 | import * as import2 from '@angular/common/src/common_module'; 10 | import * as import3 from '@angular/forms/src/directives'; 11 | import * as import4 from '@angular/forms/src/form_providers'; 12 | import * as import5 from '@angular/router/src/router_module'; 13 | import * as import6 from '@angular/common/src/localization'; 14 | import * as import7 from '@angular/forms/src/directives/radio_control_value_accessor'; 15 | import * as import8 from '../../../app/flug/services/flug.service'; 16 | import * as import9 from '@angular/core/src/di/injector'; 17 | import * as import10 from './flug-buchen/flug-buchen.component.ngfactory'; 18 | import * as import11 from './flug-suchen/flug-suchen.component.ngfactory'; 19 | import * as import12 from './passagier-suchen/passagier.suchen.component.ngfactory'; 20 | import * as import13 from './flug-edit/flug-edit.component.ngfactory'; 21 | import * as import14 from '../../../app/flug/flug-buchen/flug-buchen.component'; 22 | import * as import15 from '../../../app/flug/flug-suchen/flug-suchen.component'; 23 | import * as import16 from '../../../app/flug/passagier-suchen/passagier.suchen.component'; 24 | import * as import17 from '../../../app/flug/flug-edit/flug-edit.component'; 25 | import * as import18 from '@angular/http/src/http'; 26 | import * as import19 from '@angular/core/src/i18n/tokens'; 27 | import * as import20 from '@angular/router/src/router_config_loader'; 28 | class FlugModuleInjector extends import0.NgModuleInjector { 29 | _CommonModule_0:import2.CommonModule; 30 | _InternalFormsSharedModule_1:import3.InternalFormsSharedModule; 31 | _FormsModule_2:import4.FormsModule; 32 | _RouterModule_3:import5.RouterModule; 33 | _FlugModule_4:import1.FlugModule; 34 | __LOCALE_ID_5:any; 35 | __NgLocalization_6:import6.NgLocaleLocalization; 36 | __RadioControlRegistry_7:import7.RadioControlRegistry; 37 | __ROUTES_8:any[]; 38 | __FlugService_9:import8.FlugService; 39 | __TRANSLATIONS_FORMAT_10:any; 40 | constructor(parent:import9.Injector) { 41 | super(parent,[ 42 | import10.FlugBuchenComponentNgFactory, 43 | import11.FlugSuchenComponentNgFactory, 44 | import12.PassagierSuchenComponentNgFactory, 45 | import13.FlugEditComponentNgFactory 46 | ] 47 | ,[]); 48 | } 49 | get _LOCALE_ID_5():any { 50 | if ((this.__LOCALE_ID_5 == (null as any))) { (this.__LOCALE_ID_5 = 'en-US'); } 51 | return this.__LOCALE_ID_5; 52 | } 53 | get _NgLocalization_6():import6.NgLocaleLocalization { 54 | if ((this.__NgLocalization_6 == (null as any))) { (this.__NgLocalization_6 = new import6.NgLocaleLocalization(this._LOCALE_ID_5)); } 55 | return this.__NgLocalization_6; 56 | } 57 | get _RadioControlRegistry_7():import7.RadioControlRegistry { 58 | if ((this.__RadioControlRegistry_7 == (null as any))) { (this.__RadioControlRegistry_7 = new import7.RadioControlRegistry()); } 59 | return this.__RadioControlRegistry_7; 60 | } 61 | get _ROUTES_8():any[] { 62 | if ((this.__ROUTES_8 == (null as any))) { (this.__ROUTES_8 = [[{ 63 | path: 'flug-buchen', 64 | component: import14.FlugBuchenComponent, 65 | children: [ 66 | { 67 | path: 'flug-suchen', 68 | component: import15.FlugSuchenComponent 69 | } 70 | , 71 | { 72 | path: 'passagier-suchen', 73 | component: import16.PassagierSuchenComponent 74 | } 75 | , 76 | { 77 | path: 'flug-edit/:id', 78 | component: import17.FlugEditComponent 79 | } 80 | 81 | ] 82 | 83 | } 84 | ]]); } 85 | return this.__ROUTES_8; 86 | } 87 | get _FlugService_9():import8.FlugService { 88 | if ((this.__FlugService_9 == (null as any))) { (this.__FlugService_9 = new import8.FlugService(this.parent.get(import18.Http))); } 89 | return this.__FlugService_9; 90 | } 91 | get _TRANSLATIONS_FORMAT_10():any { 92 | if ((this.__TRANSLATIONS_FORMAT_10 == (null as any))) { (this.__TRANSLATIONS_FORMAT_10 = (null as any)); } 93 | return this.__TRANSLATIONS_FORMAT_10; 94 | } 95 | createInternal():import1.FlugModule { 96 | this._CommonModule_0 = new import2.CommonModule(); 97 | this._InternalFormsSharedModule_1 = new import3.InternalFormsSharedModule(); 98 | this._FormsModule_2 = new import4.FormsModule(); 99 | this._RouterModule_3 = new import5.RouterModule(this.parent.get(import5.ROUTER_FORROOT_GUARD,(null as any))); 100 | this._FlugModule_4 = new import1.FlugModule(); 101 | return this._FlugModule_4; 102 | } 103 | getInternal(token:any,notFoundResult:any):any { 104 | if ((token === import2.CommonModule)) { return this._CommonModule_0; } 105 | if ((token === import3.InternalFormsSharedModule)) { return this._InternalFormsSharedModule_1; } 106 | if ((token === import4.FormsModule)) { return this._FormsModule_2; } 107 | if ((token === import5.RouterModule)) { return this._RouterModule_3; } 108 | if ((token === import1.FlugModule)) { return this._FlugModule_4; } 109 | if ((token === import19.LOCALE_ID)) { return this._LOCALE_ID_5; } 110 | if ((token === import6.NgLocalization)) { return this._NgLocalization_6; } 111 | if ((token === import7.RadioControlRegistry)) { return this._RadioControlRegistry_7; } 112 | if ((token === import20.ROUTES)) { return this._ROUTES_8; } 113 | if ((token === import8.FlugService)) { return this._FlugService_9; } 114 | if ((token === import19.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_10; } 115 | return notFoundResult; 116 | } 117 | destroyInternal():void { 118 | } 119 | } 120 | export const FlugModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(FlugModuleInjector,import1.FlugModule); -------------------------------------------------------------------------------- /aot/app/flug/passagier-suchen/passagier.suchen.component.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/render/api'; 8 | import * as import1 from '@angular/core/src/linker/view'; 9 | import * as import2 from '@angular/core/src/linker/element'; 10 | import * as import3 from '../../../../app/flug/passagier-suchen/passagier.suchen.component'; 11 | import * as import4 from '@angular/core/src/linker/view_utils'; 12 | import * as import5 from '@angular/core/src/di/injector'; 13 | import * as import6 from '@angular/core/src/linker/view_type'; 14 | import * as import7 from '@angular/core/src/change_detection/change_detection'; 15 | import * as import8 from '@angular/core/src/metadata/view'; 16 | import * as import9 from '@angular/core/src/linker/component_factory'; 17 | var renderType_PassagierSuchenComponent_Host:import0.RenderComponentType = (null as any); 18 | class _View_PassagierSuchenComponent_Host0 extends import1.AppView { 19 | _el_0:any; 20 | /*private*/ _appEl_0:import2.AppElement; 21 | _PassagierSuchenComponent_0_4:import3.PassagierSuchenComponent; 22 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 23 | super(_View_PassagierSuchenComponent_Host0,renderType_PassagierSuchenComponent_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 24 | } 25 | createInternal(rootSelector:string):import2.AppElement { 26 | this._el_0 = this.selectOrCreateHostElement('passagier-suchen',rootSelector,(null as any)); 27 | this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0); 28 | var compView_0:any = viewFactory_PassagierSuchenComponent0(this.viewUtils,this.injector(0),this._appEl_0); 29 | this._PassagierSuchenComponent_0_4 = new import3.PassagierSuchenComponent(); 30 | this._appEl_0.initComponent(this._PassagierSuchenComponent_0_4,[],compView_0); 31 | compView_0.create(this._PassagierSuchenComponent_0_4,this.projectableNodes,(null as any)); 32 | this.init([].concat([this._el_0]),[this._el_0],[],[]); 33 | return this._appEl_0; 34 | } 35 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 36 | if (((token === import3.PassagierSuchenComponent) && (0 === requestNodeIndex))) { return this._PassagierSuchenComponent_0_4; } 37 | return notFoundResult; 38 | } 39 | } 40 | function viewFactory_PassagierSuchenComponent_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 41 | if ((renderType_PassagierSuchenComponent_Host === (null as any))) { (renderType_PassagierSuchenComponent_Host = viewUtils.createRenderComponentType('',0,import8.ViewEncapsulation.None,[],{})); } 42 | return new _View_PassagierSuchenComponent_Host0(viewUtils,parentInjector,declarationEl); 43 | } 44 | export const PassagierSuchenComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('passagier-suchen',viewFactory_PassagierSuchenComponent_Host0,import3.PassagierSuchenComponent); 45 | const styles_PassagierSuchenComponent:any[] = []; 46 | var renderType_PassagierSuchenComponent:import0.RenderComponentType = (null as any); 47 | class _View_PassagierSuchenComponent0 extends import1.AppView { 48 | _text_0:any; 49 | _el_1:any; 50 | _text_2:any; 51 | _text_3:any; 52 | /*private*/ _expr_0:any; 53 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 54 | super(_View_PassagierSuchenComponent0,renderType_PassagierSuchenComponent,import6.ViewType.COMPONENT,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 55 | } 56 | createInternal(rootSelector:string):import2.AppElement { 57 | const parentRenderNode:any = this.renderer.createViewRoot(this.declarationAppElement.nativeElement); 58 | this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); 59 | this._el_1 = this.renderer.createElement(parentRenderNode,'h1',(null as any)); 60 | this._text_2 = this.renderer.createText(this._el_1,'',(null as any)); 61 | this._text_3 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); 62 | this._expr_0 = import7.UNINITIALIZED; 63 | this.init([],[ 64 | this._text_0, 65 | this._el_1, 66 | this._text_2, 67 | this._text_3 68 | ] 69 | ,[],[]); 70 | return (null as any); 71 | } 72 | detectChangesInternal(throwOnChange:boolean):void { 73 | this.detectContentChildrenChanges(throwOnChange); 74 | const currVal_0:any = import4.interpolate(1,'',this.context.info,''); 75 | if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) { 76 | this.renderer.setText(this._text_2,currVal_0); 77 | this._expr_0 = currVal_0; 78 | } 79 | this.detectViewChildrenChanges(throwOnChange); 80 | } 81 | } 82 | export function viewFactory_PassagierSuchenComponent0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 83 | if ((renderType_PassagierSuchenComponent === (null as any))) { (renderType_PassagierSuchenComponent = viewUtils.createRenderComponentType('c:/Users/Manfred/Documents/artikel/Blog/angular2-aot/aot/app/flug/passagier-suchen/passagier.suchen.component.ts class PassagierSuchenComponent - inline template',0,import8.ViewEncapsulation.None,styles_PassagierSuchenComponent,{})); } 84 | return new _View_PassagierSuchenComponent0(viewUtils,parentInjector,declarationEl); 85 | } -------------------------------------------------------------------------------- /aot/app/home/home.component.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/render/api'; 8 | import * as import1 from '@angular/core/src/linker/view'; 9 | import * as import2 from '@angular/core/src/linker/element'; 10 | import * as import3 from '../../../app/home/home.component'; 11 | import * as import4 from '@angular/core/src/linker/view_utils'; 12 | import * as import5 from '@angular/core/src/di/injector'; 13 | import * as import6 from '@angular/core/src/linker/view_type'; 14 | import * as import7 from '@angular/core/src/change_detection/change_detection'; 15 | import * as import8 from '@angular/core/src/metadata/view'; 16 | import * as import9 from '@angular/core/src/linker/component_factory'; 17 | var renderType_HomeComponent_Host:import0.RenderComponentType = (null as any); 18 | class _View_HomeComponent_Host0 extends import1.AppView { 19 | _el_0:any; 20 | /*private*/ _appEl_0:import2.AppElement; 21 | _HomeComponent_0_4:import3.HomeComponent; 22 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 23 | super(_View_HomeComponent_Host0,renderType_HomeComponent_Host,import6.ViewType.HOST,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 24 | } 25 | createInternal(rootSelector:string):import2.AppElement { 26 | this._el_0 = this.selectOrCreateHostElement('home',rootSelector,(null as any)); 27 | this._appEl_0 = new import2.AppElement(0,(null as any),this,this._el_0); 28 | var compView_0:any = viewFactory_HomeComponent0(this.viewUtils,this.injector(0),this._appEl_0); 29 | this._HomeComponent_0_4 = new import3.HomeComponent(); 30 | this._appEl_0.initComponent(this._HomeComponent_0_4,[],compView_0); 31 | compView_0.create(this._HomeComponent_0_4,this.projectableNodes,(null as any)); 32 | this.init([].concat([this._el_0]),[this._el_0],[],[]); 33 | return this._appEl_0; 34 | } 35 | injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { 36 | if (((token === import3.HomeComponent) && (0 === requestNodeIndex))) { return this._HomeComponent_0_4; } 37 | return notFoundResult; 38 | } 39 | } 40 | function viewFactory_HomeComponent_Host0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 41 | if ((renderType_HomeComponent_Host === (null as any))) { (renderType_HomeComponent_Host = viewUtils.createRenderComponentType('',0,import8.ViewEncapsulation.None,[],{})); } 42 | return new _View_HomeComponent_Host0(viewUtils,parentInjector,declarationEl); 43 | } 44 | export const HomeComponentNgFactory:import9.ComponentFactory = new import9.ComponentFactory('home',viewFactory_HomeComponent_Host0,import3.HomeComponent); 45 | const styles_HomeComponent:any[] = []; 46 | var renderType_HomeComponent:import0.RenderComponentType = (null as any); 47 | class _View_HomeComponent0 extends import1.AppView { 48 | _text_0:any; 49 | _el_1:any; 50 | _text_2:any; 51 | _text_3:any; 52 | /*private*/ _expr_0:any; 53 | constructor(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement) { 54 | super(_View_HomeComponent0,renderType_HomeComponent,import6.ViewType.COMPONENT,viewUtils,parentInjector,declarationEl,import7.ChangeDetectorStatus.CheckAlways); 55 | } 56 | createInternal(rootSelector:string):import2.AppElement { 57 | const parentRenderNode:any = this.renderer.createViewRoot(this.declarationAppElement.nativeElement); 58 | this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); 59 | this._el_1 = this.renderer.createElement(parentRenderNode,'h1',(null as any)); 60 | this._text_2 = this.renderer.createText(this._el_1,'',(null as any)); 61 | this._text_3 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); 62 | this._expr_0 = import7.UNINITIALIZED; 63 | this.init([],[ 64 | this._text_0, 65 | this._el_1, 66 | this._text_2, 67 | this._text_3 68 | ] 69 | ,[],[]); 70 | return (null as any); 71 | } 72 | detectChangesInternal(throwOnChange:boolean):void { 73 | this.detectContentChildrenChanges(throwOnChange); 74 | const currVal_0:any = import4.interpolate(1,'',this.context.info,''); 75 | if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) { 76 | this.renderer.setText(this._text_2,currVal_0); 77 | this._expr_0 = currVal_0; 78 | } 79 | this.detectViewChildrenChanges(throwOnChange); 80 | } 81 | } 82 | export function viewFactory_HomeComponent0(viewUtils:import4.ViewUtils,parentInjector:import5.Injector,declarationEl:import2.AppElement):import1.AppView { 83 | if ((renderType_HomeComponent === (null as any))) { (renderType_HomeComponent = viewUtils.createRenderComponentType('c:/Users/Manfred/Documents/artikel/Blog/angular2-aot/aot/app/home/home.component.ts class HomeComponent - inline template',0,import8.ViewEncapsulation.None,styles_HomeComponent,{})); } 84 | return new _View_HomeComponent0(viewUtils,parentInjector,declarationEl); 85 | } -------------------------------------------------------------------------------- /aot/node_modules/@angular/common/src/common_module.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/common/src/common_module'; 9 | import * as import2 from '@angular/common/src/localization'; 10 | import * as import3 from '@angular/core/src/di/injector'; 11 | import * as import4 from '@angular/core/src/i18n/tokens'; 12 | class CommonModuleInjector extends import0.NgModuleInjector { 13 | _CommonModule_0:import1.CommonModule; 14 | __LOCALE_ID_1:any; 15 | __NgLocalization_2:import2.NgLocaleLocalization; 16 | __TRANSLATIONS_FORMAT_3:any; 17 | constructor(parent:import3.Injector) { 18 | super(parent,[],[]); 19 | } 20 | get _LOCALE_ID_1():any { 21 | if ((this.__LOCALE_ID_1 == (null as any))) { (this.__LOCALE_ID_1 = 'en-US'); } 22 | return this.__LOCALE_ID_1; 23 | } 24 | get _NgLocalization_2():import2.NgLocaleLocalization { 25 | if ((this.__NgLocalization_2 == (null as any))) { (this.__NgLocalization_2 = new import2.NgLocaleLocalization(this._LOCALE_ID_1)); } 26 | return this.__NgLocalization_2; 27 | } 28 | get _TRANSLATIONS_FORMAT_3():any { 29 | if ((this.__TRANSLATIONS_FORMAT_3 == (null as any))) { (this.__TRANSLATIONS_FORMAT_3 = (null as any)); } 30 | return this.__TRANSLATIONS_FORMAT_3; 31 | } 32 | createInternal():import1.CommonModule { 33 | this._CommonModule_0 = new import1.CommonModule(); 34 | return this._CommonModule_0; 35 | } 36 | getInternal(token:any,notFoundResult:any):any { 37 | if ((token === import1.CommonModule)) { return this._CommonModule_0; } 38 | if ((token === import4.LOCALE_ID)) { return this._LOCALE_ID_1; } 39 | if ((token === import2.NgLocalization)) { return this._NgLocalization_2; } 40 | if ((token === import4.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_3; } 41 | return notFoundResult; 42 | } 43 | destroyInternal():void { 44 | } 45 | } 46 | export const CommonModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(CommonModuleInjector,import1.CommonModule); -------------------------------------------------------------------------------- /aot/node_modules/@angular/core/src/application_module.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/core/src/application_module'; 9 | import * as import2 from '@angular/core/src/application_init'; 10 | import * as import3 from '@angular/core/src/application_ref'; 11 | import * as import4 from '@angular/core/src/linker/compiler'; 12 | import * as import5 from '@angular/core/src/linker/view_utils'; 13 | import * as import6 from '@angular/core/src/di/injector'; 14 | import * as import7 from '@angular/core/src/application_tokens'; 15 | import * as import8 from '@angular/core/src/render/api'; 16 | import * as import9 from '@angular/core/src/security'; 17 | import * as import10 from '@angular/core/src/zone/ng_zone'; 18 | import * as import11 from '@angular/core/src/console'; 19 | import * as import12 from '@angular/core/src/error_handler'; 20 | import * as import13 from '@angular/core/src/testability/testability'; 21 | import * as import14 from '@angular/core/src/change_detection/differs/iterable_differs'; 22 | import * as import15 from '@angular/core/src/change_detection/differs/keyvalue_differs'; 23 | import * as import16 from '@angular/core/src/i18n/tokens'; 24 | import * as import17 from '@angular/core/src/i18n/tokens'; 25 | class ApplicationModuleInjector extends import0.NgModuleInjector { 26 | _ApplicationModule_0:import1.ApplicationModule; 27 | _ApplicationInitStatus_1:import2.ApplicationInitStatus; 28 | _ApplicationRef__2:import3.ApplicationRef_; 29 | __ApplicationRef_3:any; 30 | __Compiler_4:import4.Compiler; 31 | __APP_ID_5:any; 32 | __ViewUtils_6:import5.ViewUtils; 33 | __IterableDiffers_7:any; 34 | __KeyValueDiffers_8:any; 35 | __LOCALE_ID_9:any; 36 | __TRANSLATIONS_FORMAT_10:any; 37 | constructor(parent:import6.Injector) { 38 | super(parent,[],[]); 39 | } 40 | get _ApplicationRef_3():any { 41 | if ((this.__ApplicationRef_3 == (null as any))) { (this.__ApplicationRef_3 = this._ApplicationRef__2); } 42 | return this.__ApplicationRef_3; 43 | } 44 | get _Compiler_4():import4.Compiler { 45 | if ((this.__Compiler_4 == (null as any))) { (this.__Compiler_4 = new import4.Compiler()); } 46 | return this.__Compiler_4; 47 | } 48 | get _APP_ID_5():any { 49 | if ((this.__APP_ID_5 == (null as any))) { (this.__APP_ID_5 = import7._appIdRandomProviderFactory()); } 50 | return this.__APP_ID_5; 51 | } 52 | get _ViewUtils_6():import5.ViewUtils { 53 | if ((this.__ViewUtils_6 == (null as any))) { (this.__ViewUtils_6 = new import5.ViewUtils(this.parent.get(import8.RootRenderer),this._APP_ID_5,this.parent.get(import9.Sanitizer))); } 54 | return this.__ViewUtils_6; 55 | } 56 | get _IterableDiffers_7():any { 57 | if ((this.__IterableDiffers_7 == (null as any))) { (this.__IterableDiffers_7 = import1._iterableDiffersFactory()); } 58 | return this.__IterableDiffers_7; 59 | } 60 | get _KeyValueDiffers_8():any { 61 | if ((this.__KeyValueDiffers_8 == (null as any))) { (this.__KeyValueDiffers_8 = import1._keyValueDiffersFactory()); } 62 | return this.__KeyValueDiffers_8; 63 | } 64 | get _LOCALE_ID_9():any { 65 | if ((this.__LOCALE_ID_9 == (null as any))) { (this.__LOCALE_ID_9 = 'en-US'); } 66 | return this.__LOCALE_ID_9; 67 | } 68 | get _TRANSLATIONS_FORMAT_10():any { 69 | if ((this.__TRANSLATIONS_FORMAT_10 == (null as any))) { (this.__TRANSLATIONS_FORMAT_10 = (null as any)); } 70 | return this.__TRANSLATIONS_FORMAT_10; 71 | } 72 | createInternal():import1.ApplicationModule { 73 | this._ApplicationModule_0 = new import1.ApplicationModule(); 74 | this._ApplicationInitStatus_1 = new import2.ApplicationInitStatus(this.parent.get(import2.APP_INITIALIZER,(null as any))); 75 | this._ApplicationRef__2 = new import3.ApplicationRef_(this.parent.get(import10.NgZone),this.parent.get(import11.Console),this,this.parent.get(import12.ErrorHandler),this,this._ApplicationInitStatus_1,this.parent.get(import13.TestabilityRegistry,(null as any)),this.parent.get(import13.Testability,(null as any))); 76 | return this._ApplicationModule_0; 77 | } 78 | getInternal(token:any,notFoundResult:any):any { 79 | if ((token === import1.ApplicationModule)) { return this._ApplicationModule_0; } 80 | if ((token === import2.ApplicationInitStatus)) { return this._ApplicationInitStatus_1; } 81 | if ((token === import3.ApplicationRef_)) { return this._ApplicationRef__2; } 82 | if ((token === import3.ApplicationRef)) { return this._ApplicationRef_3; } 83 | if ((token === import4.Compiler)) { return this._Compiler_4; } 84 | if ((token === import7.APP_ID)) { return this._APP_ID_5; } 85 | if ((token === import5.ViewUtils)) { return this._ViewUtils_6; } 86 | if ((token === import14.IterableDiffers)) { return this._IterableDiffers_7; } 87 | if ((token === import15.KeyValueDiffers)) { return this._KeyValueDiffers_8; } 88 | if ((token === import16.LOCALE_ID)) { return this._LOCALE_ID_9; } 89 | if ((token === import17.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_10; } 90 | return notFoundResult; 91 | } 92 | destroyInternal():void { 93 | this._ApplicationRef__2.ngOnDestroy(); 94 | } 95 | } 96 | export const ApplicationModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(ApplicationModuleInjector,import1.ApplicationModule); -------------------------------------------------------------------------------- /aot/node_modules/@angular/forms/src/directives.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/forms/src/directives'; 9 | import * as import2 from '@angular/core/src/di/injector'; 10 | import * as import3 from '@angular/core/src/i18n/tokens'; 11 | class InternalFormsSharedModuleInjector extends import0.NgModuleInjector { 12 | _InternalFormsSharedModule_0:import1.InternalFormsSharedModule; 13 | __LOCALE_ID_1:any; 14 | __TRANSLATIONS_FORMAT_2:any; 15 | constructor(parent:import2.Injector) { 16 | super(parent,[],[]); 17 | } 18 | get _LOCALE_ID_1():any { 19 | if ((this.__LOCALE_ID_1 == (null as any))) { (this.__LOCALE_ID_1 = 'en-US'); } 20 | return this.__LOCALE_ID_1; 21 | } 22 | get _TRANSLATIONS_FORMAT_2():any { 23 | if ((this.__TRANSLATIONS_FORMAT_2 == (null as any))) { (this.__TRANSLATIONS_FORMAT_2 = (null as any)); } 24 | return this.__TRANSLATIONS_FORMAT_2; 25 | } 26 | createInternal():import1.InternalFormsSharedModule { 27 | this._InternalFormsSharedModule_0 = new import1.InternalFormsSharedModule(); 28 | return this._InternalFormsSharedModule_0; 29 | } 30 | getInternal(token:any,notFoundResult:any):any { 31 | if ((token === import1.InternalFormsSharedModule)) { return this._InternalFormsSharedModule_0; } 32 | if ((token === import3.LOCALE_ID)) { return this._LOCALE_ID_1; } 33 | if ((token === import3.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_2; } 34 | return notFoundResult; 35 | } 36 | destroyInternal():void { 37 | } 38 | } 39 | export const InternalFormsSharedModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(InternalFormsSharedModuleInjector,import1.InternalFormsSharedModule); -------------------------------------------------------------------------------- /aot/node_modules/@angular/forms/src/form_providers.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/forms/src/form_providers'; 9 | import * as import2 from '@angular/forms/src/directives'; 10 | import * as import3 from '@angular/forms/src/directives/radio_control_value_accessor'; 11 | import * as import4 from '@angular/core/src/di/injector'; 12 | import * as import5 from '@angular/core/src/i18n/tokens'; 13 | import * as import6 from '@angular/forms/src/form_builder'; 14 | class FormsModuleInjector extends import0.NgModuleInjector { 15 | _InternalFormsSharedModule_0:import2.InternalFormsSharedModule; 16 | _FormsModule_1:import1.FormsModule; 17 | __RadioControlRegistry_2:import3.RadioControlRegistry; 18 | __LOCALE_ID_3:any; 19 | __TRANSLATIONS_FORMAT_4:any; 20 | constructor(parent:import4.Injector) { 21 | super(parent,[],[]); 22 | } 23 | get _RadioControlRegistry_2():import3.RadioControlRegistry { 24 | if ((this.__RadioControlRegistry_2 == (null as any))) { (this.__RadioControlRegistry_2 = new import3.RadioControlRegistry()); } 25 | return this.__RadioControlRegistry_2; 26 | } 27 | get _LOCALE_ID_3():any { 28 | if ((this.__LOCALE_ID_3 == (null as any))) { (this.__LOCALE_ID_3 = 'en-US'); } 29 | return this.__LOCALE_ID_3; 30 | } 31 | get _TRANSLATIONS_FORMAT_4():any { 32 | if ((this.__TRANSLATIONS_FORMAT_4 == (null as any))) { (this.__TRANSLATIONS_FORMAT_4 = (null as any)); } 33 | return this.__TRANSLATIONS_FORMAT_4; 34 | } 35 | createInternal():import1.FormsModule { 36 | this._InternalFormsSharedModule_0 = new import2.InternalFormsSharedModule(); 37 | this._FormsModule_1 = new import1.FormsModule(); 38 | return this._FormsModule_1; 39 | } 40 | getInternal(token:any,notFoundResult:any):any { 41 | if ((token === import2.InternalFormsSharedModule)) { return this._InternalFormsSharedModule_0; } 42 | if ((token === import1.FormsModule)) { return this._FormsModule_1; } 43 | if ((token === import3.RadioControlRegistry)) { return this._RadioControlRegistry_2; } 44 | if ((token === import5.LOCALE_ID)) { return this._LOCALE_ID_3; } 45 | if ((token === import5.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_4; } 46 | return notFoundResult; 47 | } 48 | destroyInternal():void { 49 | } 50 | } 51 | export const FormsModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(FormsModuleInjector,import1.FormsModule); 52 | class ReactiveFormsModuleInjector extends import0.NgModuleInjector { 53 | _InternalFormsSharedModule_0:import2.InternalFormsSharedModule; 54 | _ReactiveFormsModule_1:import1.ReactiveFormsModule; 55 | __FormBuilder_2:import6.FormBuilder; 56 | __RadioControlRegistry_3:import3.RadioControlRegistry; 57 | __LOCALE_ID_4:any; 58 | __TRANSLATIONS_FORMAT_5:any; 59 | constructor(parent:import4.Injector) { 60 | super(parent,[],[]); 61 | } 62 | get _FormBuilder_2():import6.FormBuilder { 63 | if ((this.__FormBuilder_2 == (null as any))) { (this.__FormBuilder_2 = new import6.FormBuilder()); } 64 | return this.__FormBuilder_2; 65 | } 66 | get _RadioControlRegistry_3():import3.RadioControlRegistry { 67 | if ((this.__RadioControlRegistry_3 == (null as any))) { (this.__RadioControlRegistry_3 = new import3.RadioControlRegistry()); } 68 | return this.__RadioControlRegistry_3; 69 | } 70 | get _LOCALE_ID_4():any { 71 | if ((this.__LOCALE_ID_4 == (null as any))) { (this.__LOCALE_ID_4 = 'en-US'); } 72 | return this.__LOCALE_ID_4; 73 | } 74 | get _TRANSLATIONS_FORMAT_5():any { 75 | if ((this.__TRANSLATIONS_FORMAT_5 == (null as any))) { (this.__TRANSLATIONS_FORMAT_5 = (null as any)); } 76 | return this.__TRANSLATIONS_FORMAT_5; 77 | } 78 | createInternal():import1.ReactiveFormsModule { 79 | this._InternalFormsSharedModule_0 = new import2.InternalFormsSharedModule(); 80 | this._ReactiveFormsModule_1 = new import1.ReactiveFormsModule(); 81 | return this._ReactiveFormsModule_1; 82 | } 83 | getInternal(token:any,notFoundResult:any):any { 84 | if ((token === import2.InternalFormsSharedModule)) { return this._InternalFormsSharedModule_0; } 85 | if ((token === import1.ReactiveFormsModule)) { return this._ReactiveFormsModule_1; } 86 | if ((token === import6.FormBuilder)) { return this._FormBuilder_2; } 87 | if ((token === import3.RadioControlRegistry)) { return this._RadioControlRegistry_3; } 88 | if ((token === import5.LOCALE_ID)) { return this._LOCALE_ID_4; } 89 | if ((token === import5.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_5; } 90 | return notFoundResult; 91 | } 92 | destroyInternal():void { 93 | } 94 | } 95 | export const ReactiveFormsModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(ReactiveFormsModuleInjector,import1.ReactiveFormsModule); -------------------------------------------------------------------------------- /aot/node_modules/@angular/http/src/http_module.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/http/src/http_module'; 9 | import * as import2 from '@angular/http/src/backends/browser_xhr'; 10 | import * as import3 from '@angular/http/src/base_response_options'; 11 | import * as import4 from '@angular/http/src/backends/xhr_backend'; 12 | import * as import5 from '@angular/http/src/base_request_options'; 13 | import * as import6 from '@angular/core/src/di/injector'; 14 | import * as import7 from '@angular/http/src/interfaces'; 15 | import * as import8 from '@angular/http/src/http'; 16 | import * as import9 from '@angular/core/src/i18n/tokens'; 17 | import * as import10 from '@angular/http/src/backends/browser_jsonp'; 18 | import * as import11 from '@angular/http/src/backends/jsonp_backend'; 19 | class HttpModuleInjector extends import0.NgModuleInjector { 20 | _HttpModule_0:import1.HttpModule; 21 | __BrowserXhr_1:import2.BrowserXhr; 22 | __ResponseOptions_2:import3.BaseResponseOptions; 23 | __XSRFStrategy_3:any; 24 | __XHRBackend_4:import4.XHRBackend; 25 | __RequestOptions_5:import5.BaseRequestOptions; 26 | __Http_6:any; 27 | __LOCALE_ID_7:any; 28 | __TRANSLATIONS_FORMAT_8:any; 29 | constructor(parent:import6.Injector) { 30 | super(parent,[],[]); 31 | } 32 | get _BrowserXhr_1():import2.BrowserXhr { 33 | if ((this.__BrowserXhr_1 == (null as any))) { (this.__BrowserXhr_1 = new import2.BrowserXhr()); } 34 | return this.__BrowserXhr_1; 35 | } 36 | get _ResponseOptions_2():import3.BaseResponseOptions { 37 | if ((this.__ResponseOptions_2 == (null as any))) { (this.__ResponseOptions_2 = new import3.BaseResponseOptions()); } 38 | return this.__ResponseOptions_2; 39 | } 40 | get _XSRFStrategy_3():any { 41 | if ((this.__XSRFStrategy_3 == (null as any))) { (this.__XSRFStrategy_3 = import1._createDefaultCookieXSRFStrategy()); } 42 | return this.__XSRFStrategy_3; 43 | } 44 | get _XHRBackend_4():import4.XHRBackend { 45 | if ((this.__XHRBackend_4 == (null as any))) { (this.__XHRBackend_4 = new import4.XHRBackend(this._BrowserXhr_1,this._ResponseOptions_2,this._XSRFStrategy_3)); } 46 | return this.__XHRBackend_4; 47 | } 48 | get _RequestOptions_5():import5.BaseRequestOptions { 49 | if ((this.__RequestOptions_5 == (null as any))) { (this.__RequestOptions_5 = new import5.BaseRequestOptions()); } 50 | return this.__RequestOptions_5; 51 | } 52 | get _Http_6():any { 53 | if ((this.__Http_6 == (null as any))) { (this.__Http_6 = import1.httpFactory(this._XHRBackend_4,this._RequestOptions_5)); } 54 | return this.__Http_6; 55 | } 56 | get _LOCALE_ID_7():any { 57 | if ((this.__LOCALE_ID_7 == (null as any))) { (this.__LOCALE_ID_7 = 'en-US'); } 58 | return this.__LOCALE_ID_7; 59 | } 60 | get _TRANSLATIONS_FORMAT_8():any { 61 | if ((this.__TRANSLATIONS_FORMAT_8 == (null as any))) { (this.__TRANSLATIONS_FORMAT_8 = (null as any)); } 62 | return this.__TRANSLATIONS_FORMAT_8; 63 | } 64 | createInternal():import1.HttpModule { 65 | this._HttpModule_0 = new import1.HttpModule(); 66 | return this._HttpModule_0; 67 | } 68 | getInternal(token:any,notFoundResult:any):any { 69 | if ((token === import1.HttpModule)) { return this._HttpModule_0; } 70 | if ((token === import2.BrowserXhr)) { return this._BrowserXhr_1; } 71 | if ((token === import3.ResponseOptions)) { return this._ResponseOptions_2; } 72 | if ((token === import7.XSRFStrategy)) { return this._XSRFStrategy_3; } 73 | if ((token === import4.XHRBackend)) { return this._XHRBackend_4; } 74 | if ((token === import5.RequestOptions)) { return this._RequestOptions_5; } 75 | if ((token === import8.Http)) { return this._Http_6; } 76 | if ((token === import9.LOCALE_ID)) { return this._LOCALE_ID_7; } 77 | if ((token === import9.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_8; } 78 | return notFoundResult; 79 | } 80 | destroyInternal():void { 81 | } 82 | } 83 | export const HttpModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(HttpModuleInjector,import1.HttpModule); 84 | class JsonpModuleInjector extends import0.NgModuleInjector { 85 | _JsonpModule_0:import1.JsonpModule; 86 | __BrowserJsonp_1:import10.BrowserJsonp; 87 | __ResponseOptions_2:import3.BaseResponseOptions; 88 | __JSONPBackend_3:import11.JSONPBackend_; 89 | __RequestOptions_4:import5.BaseRequestOptions; 90 | __Jsonp_5:any; 91 | __LOCALE_ID_6:any; 92 | __TRANSLATIONS_FORMAT_7:any; 93 | constructor(parent:import6.Injector) { 94 | super(parent,[],[]); 95 | } 96 | get _BrowserJsonp_1():import10.BrowserJsonp { 97 | if ((this.__BrowserJsonp_1 == (null as any))) { (this.__BrowserJsonp_1 = new import10.BrowserJsonp()); } 98 | return this.__BrowserJsonp_1; 99 | } 100 | get _ResponseOptions_2():import3.BaseResponseOptions { 101 | if ((this.__ResponseOptions_2 == (null as any))) { (this.__ResponseOptions_2 = new import3.BaseResponseOptions()); } 102 | return this.__ResponseOptions_2; 103 | } 104 | get _JSONPBackend_3():import11.JSONPBackend_ { 105 | if ((this.__JSONPBackend_3 == (null as any))) { (this.__JSONPBackend_3 = new import11.JSONPBackend_(this._BrowserJsonp_1,this._ResponseOptions_2)); } 106 | return this.__JSONPBackend_3; 107 | } 108 | get _RequestOptions_4():import5.BaseRequestOptions { 109 | if ((this.__RequestOptions_4 == (null as any))) { (this.__RequestOptions_4 = new import5.BaseRequestOptions()); } 110 | return this.__RequestOptions_4; 111 | } 112 | get _Jsonp_5():any { 113 | if ((this.__Jsonp_5 == (null as any))) { (this.__Jsonp_5 = import1.jsonpFactory(this._JSONPBackend_3,this._RequestOptions_4)); } 114 | return this.__Jsonp_5; 115 | } 116 | get _LOCALE_ID_6():any { 117 | if ((this.__LOCALE_ID_6 == (null as any))) { (this.__LOCALE_ID_6 = 'en-US'); } 118 | return this.__LOCALE_ID_6; 119 | } 120 | get _TRANSLATIONS_FORMAT_7():any { 121 | if ((this.__TRANSLATIONS_FORMAT_7 == (null as any))) { (this.__TRANSLATIONS_FORMAT_7 = (null as any)); } 122 | return this.__TRANSLATIONS_FORMAT_7; 123 | } 124 | createInternal():import1.JsonpModule { 125 | this._JsonpModule_0 = new import1.JsonpModule(); 126 | return this._JsonpModule_0; 127 | } 128 | getInternal(token:any,notFoundResult:any):any { 129 | if ((token === import1.JsonpModule)) { return this._JsonpModule_0; } 130 | if ((token === import10.BrowserJsonp)) { return this._BrowserJsonp_1; } 131 | if ((token === import3.ResponseOptions)) { return this._ResponseOptions_2; } 132 | if ((token === import11.JSONPBackend)) { return this._JSONPBackend_3; } 133 | if ((token === import5.RequestOptions)) { return this._RequestOptions_4; } 134 | if ((token === import8.Jsonp)) { return this._Jsonp_5; } 135 | if ((token === import9.LOCALE_ID)) { return this._LOCALE_ID_6; } 136 | if ((token === import9.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_7; } 137 | return notFoundResult; 138 | } 139 | destroyInternal():void { 140 | } 141 | } 142 | export const JsonpModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(JsonpModuleInjector,import1.JsonpModule); -------------------------------------------------------------------------------- /aot/node_modules/@angular/platform-browser/src/browser.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/platform-browser/src/browser'; 9 | import * as import2 from '@angular/common/src/common_module'; 10 | import * as import3 from '@angular/core/src/application_module'; 11 | import * as import4 from '@angular/common/src/localization'; 12 | import * as import5 from '@angular/core/src/application_init'; 13 | import * as import6 from '@angular/core/src/testability/testability'; 14 | import * as import7 from '@angular/core/src/application_ref'; 15 | import * as import8 from '@angular/core/src/linker/compiler'; 16 | import * as import9 from '@angular/platform-browser/src/dom/events/hammer_gestures'; 17 | import * as import10 from '@angular/platform-browser/src/dom/events/event_manager'; 18 | import * as import11 from '@angular/platform-browser/src/dom/shared_styles_host'; 19 | import * as import12 from '@angular/platform-browser/src/dom/dom_renderer'; 20 | import * as import13 from '@angular/platform-browser/src/security/dom_sanitization_service'; 21 | import * as import14 from '@angular/core/src/linker/view_utils'; 22 | import * as import15 from '@angular/platform-browser/src/browser/title'; 23 | import * as import16 from '@angular/core/src/di/injector'; 24 | import * as import17 from '@angular/core/src/application_tokens'; 25 | import * as import18 from '@angular/platform-browser/src/dom/events/dom_events'; 26 | import * as import19 from '@angular/platform-browser/src/dom/events/key_events'; 27 | import * as import20 from '@angular/core/src/zone/ng_zone'; 28 | import * as import21 from '@angular/platform-browser/src/dom/debug/ng_probe'; 29 | import * as import22 from '@angular/core/src/console'; 30 | import * as import23 from '@angular/core/src/i18n/tokens'; 31 | import * as import24 from '@angular/core/src/error_handler'; 32 | import * as import25 from '@angular/platform-browser/src/dom/dom_tokens'; 33 | import * as import26 from '@angular/platform-browser/src/dom/animation_driver'; 34 | import * as import27 from '@angular/core/src/render/api'; 35 | import * as import28 from '@angular/core/src/security'; 36 | import * as import29 from '@angular/core/src/change_detection/differs/iterable_differs'; 37 | import * as import30 from '@angular/core/src/change_detection/differs/keyvalue_differs'; 38 | import * as import31 from '@angular/core/src/i18n/tokens'; 39 | class BrowserModuleInjector extends import0.NgModuleInjector { 40 | _CommonModule_0:import2.CommonModule; 41 | _ApplicationModule_1:import3.ApplicationModule; 42 | _BrowserModule_2:import1.BrowserModule; 43 | __LOCALE_ID_3:any; 44 | __NgLocalization_4:import4.NgLocaleLocalization; 45 | _ErrorHandler_5:any; 46 | _ApplicationInitStatus_6:import5.ApplicationInitStatus; 47 | _Testability_7:import6.Testability; 48 | _ApplicationRef__8:import7.ApplicationRef_; 49 | __ApplicationRef_9:any; 50 | __Compiler_10:import8.Compiler; 51 | __APP_ID_11:any; 52 | __DOCUMENT_12:any; 53 | __HAMMER_GESTURE_CONFIG_13:import9.HammerGestureConfig; 54 | __EVENT_MANAGER_PLUGINS_14:any[]; 55 | __EventManager_15:import10.EventManager; 56 | __DomSharedStylesHost_16:import11.DomSharedStylesHost; 57 | __AnimationDriver_17:any; 58 | __DomRootRenderer_18:import12.DomRootRenderer_; 59 | __RootRenderer_19:any; 60 | __DomSanitizer_20:import13.DomSanitizerImpl; 61 | __Sanitizer_21:any; 62 | __ViewUtils_22:import14.ViewUtils; 63 | __IterableDiffers_23:any; 64 | __KeyValueDiffers_24:any; 65 | __SharedStylesHost_25:any; 66 | __Title_26:import15.Title; 67 | __TRANSLATIONS_FORMAT_27:any; 68 | constructor(parent:import16.Injector) { 69 | super(parent,[],[]); 70 | } 71 | get _LOCALE_ID_3():any { 72 | if ((this.__LOCALE_ID_3 == (null as any))) { (this.__LOCALE_ID_3 = 'en-US'); } 73 | return this.__LOCALE_ID_3; 74 | } 75 | get _NgLocalization_4():import4.NgLocaleLocalization { 76 | if ((this.__NgLocalization_4 == (null as any))) { (this.__NgLocalization_4 = new import4.NgLocaleLocalization(this._LOCALE_ID_3)); } 77 | return this.__NgLocalization_4; 78 | } 79 | get _ApplicationRef_9():any { 80 | if ((this.__ApplicationRef_9 == (null as any))) { (this.__ApplicationRef_9 = this._ApplicationRef__8); } 81 | return this.__ApplicationRef_9; 82 | } 83 | get _Compiler_10():import8.Compiler { 84 | if ((this.__Compiler_10 == (null as any))) { (this.__Compiler_10 = new import8.Compiler()); } 85 | return this.__Compiler_10; 86 | } 87 | get _APP_ID_11():any { 88 | if ((this.__APP_ID_11 == (null as any))) { (this.__APP_ID_11 = import17._appIdRandomProviderFactory()); } 89 | return this.__APP_ID_11; 90 | } 91 | get _DOCUMENT_12():any { 92 | if ((this.__DOCUMENT_12 == (null as any))) { (this.__DOCUMENT_12 = import1._document()); } 93 | return this.__DOCUMENT_12; 94 | } 95 | get _HAMMER_GESTURE_CONFIG_13():import9.HammerGestureConfig { 96 | if ((this.__HAMMER_GESTURE_CONFIG_13 == (null as any))) { (this.__HAMMER_GESTURE_CONFIG_13 = new import9.HammerGestureConfig()); } 97 | return this.__HAMMER_GESTURE_CONFIG_13; 98 | } 99 | get _EVENT_MANAGER_PLUGINS_14():any[] { 100 | if ((this.__EVENT_MANAGER_PLUGINS_14 == (null as any))) { (this.__EVENT_MANAGER_PLUGINS_14 = [ 101 | new import18.DomEventsPlugin(), 102 | new import19.KeyEventsPlugin(), 103 | new import9.HammerGesturesPlugin(this._HAMMER_GESTURE_CONFIG_13) 104 | ] 105 | ); } 106 | return this.__EVENT_MANAGER_PLUGINS_14; 107 | } 108 | get _EventManager_15():import10.EventManager { 109 | if ((this.__EventManager_15 == (null as any))) { (this.__EventManager_15 = new import10.EventManager(this._EVENT_MANAGER_PLUGINS_14,this.parent.get(import20.NgZone))); } 110 | return this.__EventManager_15; 111 | } 112 | get _DomSharedStylesHost_16():import11.DomSharedStylesHost { 113 | if ((this.__DomSharedStylesHost_16 == (null as any))) { (this.__DomSharedStylesHost_16 = new import11.DomSharedStylesHost(this._DOCUMENT_12)); } 114 | return this.__DomSharedStylesHost_16; 115 | } 116 | get _AnimationDriver_17():any { 117 | if ((this.__AnimationDriver_17 == (null as any))) { (this.__AnimationDriver_17 = import1._resolveDefaultAnimationDriver()); } 118 | return this.__AnimationDriver_17; 119 | } 120 | get _DomRootRenderer_18():import12.DomRootRenderer_ { 121 | if ((this.__DomRootRenderer_18 == (null as any))) { (this.__DomRootRenderer_18 = new import12.DomRootRenderer_(this._DOCUMENT_12,this._EventManager_15,this._DomSharedStylesHost_16,this._AnimationDriver_17)); } 122 | return this.__DomRootRenderer_18; 123 | } 124 | get _RootRenderer_19():any { 125 | if ((this.__RootRenderer_19 == (null as any))) { (this.__RootRenderer_19 = import21._createConditionalRootRenderer(this._DomRootRenderer_18,this.parent.get(import21.NgProbeToken,(null as any)))); } 126 | return this.__RootRenderer_19; 127 | } 128 | get _DomSanitizer_20():import13.DomSanitizerImpl { 129 | if ((this.__DomSanitizer_20 == (null as any))) { (this.__DomSanitizer_20 = new import13.DomSanitizerImpl()); } 130 | return this.__DomSanitizer_20; 131 | } 132 | get _Sanitizer_21():any { 133 | if ((this.__Sanitizer_21 == (null as any))) { (this.__Sanitizer_21 = this._DomSanitizer_20); } 134 | return this.__Sanitizer_21; 135 | } 136 | get _ViewUtils_22():import14.ViewUtils { 137 | if ((this.__ViewUtils_22 == (null as any))) { (this.__ViewUtils_22 = new import14.ViewUtils(this._RootRenderer_19,this._APP_ID_11,this._Sanitizer_21)); } 138 | return this.__ViewUtils_22; 139 | } 140 | get _IterableDiffers_23():any { 141 | if ((this.__IterableDiffers_23 == (null as any))) { (this.__IterableDiffers_23 = import3._iterableDiffersFactory()); } 142 | return this.__IterableDiffers_23; 143 | } 144 | get _KeyValueDiffers_24():any { 145 | if ((this.__KeyValueDiffers_24 == (null as any))) { (this.__KeyValueDiffers_24 = import3._keyValueDiffersFactory()); } 146 | return this.__KeyValueDiffers_24; 147 | } 148 | get _SharedStylesHost_25():any { 149 | if ((this.__SharedStylesHost_25 == (null as any))) { (this.__SharedStylesHost_25 = this._DomSharedStylesHost_16); } 150 | return this.__SharedStylesHost_25; 151 | } 152 | get _Title_26():import15.Title { 153 | if ((this.__Title_26 == (null as any))) { (this.__Title_26 = new import15.Title()); } 154 | return this.__Title_26; 155 | } 156 | get _TRANSLATIONS_FORMAT_27():any { 157 | if ((this.__TRANSLATIONS_FORMAT_27 == (null as any))) { (this.__TRANSLATIONS_FORMAT_27 = (null as any)); } 158 | return this.__TRANSLATIONS_FORMAT_27; 159 | } 160 | createInternal():import1.BrowserModule { 161 | this._CommonModule_0 = new import2.CommonModule(); 162 | this._ApplicationModule_1 = new import3.ApplicationModule(); 163 | this._BrowserModule_2 = new import1.BrowserModule(this.parent.get(import1.BrowserModule,(null as any))); 164 | this._ErrorHandler_5 = import1.errorHandler(); 165 | this._ApplicationInitStatus_6 = new import5.ApplicationInitStatus(this.parent.get(import5.APP_INITIALIZER,(null as any))); 166 | this._Testability_7 = new import6.Testability(this.parent.get(import20.NgZone)); 167 | this._ApplicationRef__8 = new import7.ApplicationRef_(this.parent.get(import20.NgZone),this.parent.get(import22.Console),this,this._ErrorHandler_5,this,this._ApplicationInitStatus_6,this.parent.get(import6.TestabilityRegistry,(null as any)),this._Testability_7); 168 | return this._BrowserModule_2; 169 | } 170 | getInternal(token:any,notFoundResult:any):any { 171 | if ((token === import2.CommonModule)) { return this._CommonModule_0; } 172 | if ((token === import3.ApplicationModule)) { return this._ApplicationModule_1; } 173 | if ((token === import1.BrowserModule)) { return this._BrowserModule_2; } 174 | if ((token === import23.LOCALE_ID)) { return this._LOCALE_ID_3; } 175 | if ((token === import4.NgLocalization)) { return this._NgLocalization_4; } 176 | if ((token === import24.ErrorHandler)) { return this._ErrorHandler_5; } 177 | if ((token === import5.ApplicationInitStatus)) { return this._ApplicationInitStatus_6; } 178 | if ((token === import6.Testability)) { return this._Testability_7; } 179 | if ((token === import7.ApplicationRef_)) { return this._ApplicationRef__8; } 180 | if ((token === import7.ApplicationRef)) { return this._ApplicationRef_9; } 181 | if ((token === import8.Compiler)) { return this._Compiler_10; } 182 | if ((token === import17.APP_ID)) { return this._APP_ID_11; } 183 | if ((token === import25.DOCUMENT)) { return this._DOCUMENT_12; } 184 | if ((token === import9.HAMMER_GESTURE_CONFIG)) { return this._HAMMER_GESTURE_CONFIG_13; } 185 | if ((token === import10.EVENT_MANAGER_PLUGINS)) { return this._EVENT_MANAGER_PLUGINS_14; } 186 | if ((token === import10.EventManager)) { return this._EventManager_15; } 187 | if ((token === import11.DomSharedStylesHost)) { return this._DomSharedStylesHost_16; } 188 | if ((token === import26.AnimationDriver)) { return this._AnimationDriver_17; } 189 | if ((token === import12.DomRootRenderer)) { return this._DomRootRenderer_18; } 190 | if ((token === import27.RootRenderer)) { return this._RootRenderer_19; } 191 | if ((token === import13.DomSanitizer)) { return this._DomSanitizer_20; } 192 | if ((token === import28.Sanitizer)) { return this._Sanitizer_21; } 193 | if ((token === import14.ViewUtils)) { return this._ViewUtils_22; } 194 | if ((token === import29.IterableDiffers)) { return this._IterableDiffers_23; } 195 | if ((token === import30.KeyValueDiffers)) { return this._KeyValueDiffers_24; } 196 | if ((token === import11.SharedStylesHost)) { return this._SharedStylesHost_25; } 197 | if ((token === import15.Title)) { return this._Title_26; } 198 | if ((token === import31.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_27; } 199 | return notFoundResult; 200 | } 201 | destroyInternal():void { 202 | this._ApplicationRef__8.ngOnDestroy(); 203 | } 204 | } 205 | export const BrowserModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(BrowserModuleInjector,import1.BrowserModule); -------------------------------------------------------------------------------- /aot/node_modules/@angular/router/src/router_module.ngfactory.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | import * as import0 from '@angular/core/src/linker/ng_module_factory'; 8 | import * as import1 from '@angular/router/src/router_module'; 9 | import * as import2 from '@angular/core/src/di/injector'; 10 | import * as import3 from '@angular/core/src/i18n/tokens'; 11 | class RouterModuleInjector extends import0.NgModuleInjector { 12 | _RouterModule_0:import1.RouterModule; 13 | __LOCALE_ID_1:any; 14 | __TRANSLATIONS_FORMAT_2:any; 15 | constructor(parent:import2.Injector) { 16 | super(parent,[],[]); 17 | } 18 | get _LOCALE_ID_1():any { 19 | if ((this.__LOCALE_ID_1 == (null as any))) { (this.__LOCALE_ID_1 = 'en-US'); } 20 | return this.__LOCALE_ID_1; 21 | } 22 | get _TRANSLATIONS_FORMAT_2():any { 23 | if ((this.__TRANSLATIONS_FORMAT_2 == (null as any))) { (this.__TRANSLATIONS_FORMAT_2 = (null as any)); } 24 | return this.__TRANSLATIONS_FORMAT_2; 25 | } 26 | createInternal():import1.RouterModule { 27 | this._RouterModule_0 = new import1.RouterModule(this.parent.get(import1.ROUTER_FORROOT_GUARD,(null as any))); 28 | return this._RouterModule_0; 29 | } 30 | getInternal(token:any,notFoundResult:any):any { 31 | if ((token === import1.RouterModule)) { return this._RouterModule_0; } 32 | if ((token === import3.LOCALE_ID)) { return this._LOCALE_ID_1; } 33 | if ((token === import3.TRANSLATIONS_FORMAT)) { return this._TRANSLATIONS_FORMAT_2; } 34 | return notFoundResult; 35 | } 36 | destroyInternal():void { 37 | } 38 | } 39 | export const RouterModuleNgFactory:import0.NgModuleFactory = new import0.NgModuleFactory(RouterModuleInjector,import1.RouterModule); -------------------------------------------------------------------------------- /app/app.component.html: -------------------------------------------------------------------------------- 1 | 7 | 8 |
9 | 10 |
-------------------------------------------------------------------------------- /app/app.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core' 2 | import { Router, CanActivateChild } from '@angular/router' 3 | 4 | @Component({ 5 | selector: 'flug-app', 6 | templateUrl: './app.component.html' 7 | }) 8 | export class AppComponent { 9 | info = "FlugApp!!"; 10 | showInfo = false; 11 | 12 | constructor(private router: Router) { 13 | } 14 | 15 | activateInfo() { 16 | this.router.navigate([{outlets: { aux: 'info' }}]); 17 | } 18 | 19 | deactivateInfo() { 20 | this.router.navigate([{outlets: { aux: null }}]); 21 | } 22 | 23 | 24 | navigateToFlugSuchen() { 25 | this.router.navigate(['flug-suchen']); 26 | } 27 | 28 | 29 | 30 | toggleShowInfo() { 31 | if (!this.showInfo) { 32 | this.showInfo = true; 33 | this.router.navigate([{outlets: { aux: 'info' }}]); 34 | } 35 | else { 36 | this.showInfo = false; 37 | this.router.navigate([{outlets: { aux: null }}]); 38 | } 39 | } 40 | 41 | get toggleShowInfoLabel() { 42 | if (!this.showInfo) return "Info einblenden!"; 43 | return "Info ausblenden"; 44 | } 45 | } -------------------------------------------------------------------------------- /app/app.definitions.d.ts: -------------------------------------------------------------------------------- 1 | declare var System: { 2 | import: (path: string) => Promise; 3 | } -------------------------------------------------------------------------------- /app/app.module.ts: -------------------------------------------------------------------------------- 1 | import {NgModule} from "@angular/core"; 2 | import {AppComponent} from "./app.component"; 3 | import {BrowserModule} from "@angular/platform-browser"; 4 | import {AppRoutesModule} from "./app.routes"; 5 | import {HttpModule} from "@angular/http"; 6 | import {FormsModule} from "@angular/forms"; 7 | import {HomeComponent} from "./home/home.component"; 8 | import {FlugModule} from "./flug/flug.module"; 9 | import { CityPipe} from './pipes/city.pipe'; 10 | 11 | @NgModule({ 12 | imports: [ 13 | BrowserModule, 14 | HttpModule, 15 | FormsModule, 16 | FlugModule, 17 | AppRoutesModule, 18 | 19 | ], 20 | declarations: [ 21 | AppComponent, 22 | HomeComponent 23 | 24 | ], 25 | bootstrap: [ 26 | AppComponent 27 | ] 28 | }) 29 | export class AppModule { 30 | } -------------------------------------------------------------------------------- /app/app.routes.ts: -------------------------------------------------------------------------------- 1 | import { Routes, RouterModule } from '@angular/router'; 2 | import {HomeComponent} from "./home/home.component"; 3 | 4 | export const ROUTE_CONFIG: Routes = [ 5 | { 6 | path: '', 7 | redirectTo: 'home', 8 | pathMatch: 'full' 9 | }, 10 | { 11 | path: 'home', 12 | component: HomeComponent 13 | }, 14 | 15 | /* 16 | { 17 | path: 'flug-buchen', 18 | // loadChildren: () => System.import('./flug/flug.module').then(m => m.FlugModule) 19 | loadChildren: 'app/flug/flug.module#FlugModule' 20 | }, 21 | */ 22 | { 23 | path: '**', 24 | redirectTo: 'home' 25 | } 26 | ]; 27 | 28 | 29 | export const AppRoutesModule = RouterModule.forRoot(ROUTE_CONFIG); 30 | 31 | -------------------------------------------------------------------------------- /app/entities/flug.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | export interface Flug { 4 | 5 | id: number; 6 | abflugort: string; 7 | zielort: string; 8 | datum: string; // ISO: 2016-12-24T17:00+01:0 9 | } -------------------------------------------------------------------------------- /app/flug/flug-buchen/flug-buchen.component.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 10 |
11 | 12 |
13 | 14 |
15 | -------------------------------------------------------------------------------- /app/flug/flug-buchen/flug-buchen.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import {FlugService} from "../services/flug.service"; 3 | 4 | @Component({ 5 | templateUrl: './flug-buchen.component.html', 6 | providers: [FlugService] 7 | }) 8 | export class FlugBuchenComponent { 9 | } -------------------------------------------------------------------------------- /app/flug/flug-edit/flug-edit.component.html: -------------------------------------------------------------------------------- 1 |

FlugEdit

2 | 3 |
4 | {{message}} 5 |
6 | 7 |
8 | 9 | 11 |
Leere Id oder 0 für neuen Datensatz
12 |
13 | 14 |
15 | 16 | 18 |
19 | 20 |
21 | 22 | 24 |
25 | 26 |
27 | 28 | 30 |
31 | 32 |
33 | 34 |
-------------------------------------------------------------------------------- /app/flug/flug-edit/flug-edit.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { ActivatedRoute } from '@angular/router'; 3 | import { Observable, Observer } from 'rxjs'; 4 | import {FlugService} from "../services/flug.service"; 5 | import {Flug} from "../../entities/flug"; 6 | 7 | @Component({ 8 | templateUrl: './flug-edit.component.html', 9 | }) 10 | export class FlugEditComponent { 11 | 12 | flug: Flug = {} as any; 13 | message: string; 14 | 15 | constructor(route: ActivatedRoute, private flugService: FlugService) { 16 | route.params.subscribe( (p) => { 17 | let id = p['id']; 18 | this.flugService 19 | .findById(id) 20 | .subscribe( 21 | (flug) => { 22 | this.flug = flug; 23 | }, 24 | (err) => { 25 | console.error('Fehler beim Laden', err); 26 | } 27 | ) 28 | 29 | }) 30 | } 31 | 32 | save() { 33 | this.flugService 34 | .save(this.flug) 35 | .subscribe( 36 | (flug) => { 37 | this.flug = flug; 38 | this.message = "Erfolgreich gespeichert!"; 39 | }, 40 | (err) => { 41 | console.error('Fehler beim Speichern', err); 42 | this.message = err.text(); 43 | } 44 | ) 45 | 46 | } 47 | 48 | } -------------------------------------------------------------------------------- /app/flug/flug-suchen/flug-suchen.component.css: -------------------------------------------------------------------------------- 1 | 2 | input.ng-invalid { 3 | border-left-color: deeppink; 4 | border-left-style: solid; 5 | border-left-width: 5px; 6 | } 7 | 8 | input.ng-valid { 9 | border-left-color: chartreuse; 10 | border-left-style: solid; 11 | border-left-width: 5px; 12 | } -------------------------------------------------------------------------------- /app/flug/flug-suchen/flug-suchen.component.css.shim.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * This file is generated by the Angular 2 template compiler. 3 | * Do not edit. 4 | */ 5 | /* tslint:disable */ 6 | 7 | export const styles:any[] = ['input.ng-invalid[_ngcontent-%COMP%] {\r\n border-left-color: deeppink;\r\n border-left-style: solid;\r\n border-left-width: 5px;\r\n}\r\n\r\ninput.ng-valid[_ngcontent-%COMP%] {\r\n border-left-color: chartreuse;\r\n border-left-style: solid;\r\n border-left-width: 5px;\r\n}']; -------------------------------------------------------------------------------- /app/flug/flug-suchen/flug-suchen.component.html: -------------------------------------------------------------------------------- 1 |

Flug suchen!!!

2 |
3 | 4 |
5 | 6 | 16 |
17 | 18 |
19 | Fehlerhafte Eingabe! 20 |
21 | 22 |
23 | Pflichtfeld! 24 |
25 | 26 |
27 | Muss min. 3 Zeichen haben! 28 |
29 | 30 |
31 | Darf max. 3 Zeichen haben! 32 |
33 | 34 |
35 | Nur Buchstaben erlaubt! 36 |
37 | 38 |
39 | Ort existiert nicht! (Mögliche Werte: Graz, Hamburg) 40 |
41 | 42 |
43 | Ort wird nicht angeflogen! (Mögliche Werte: Graz, Hamburg) 44 |
45 | 46 |
47 | 48 | Validierung wird durchgeführt! 49 | 50 |
51 | 52 |
53 | 54 | 55 |
56 | 57 |
58 | 59 | 63 | 64 |
65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 76 | 77 |
{{flug.id}}{{flug.datum | date:'dd.MM.yyyy' }}{{flug.abflugort | city }}{{flug.zielort | city }} 73 | Auswählen | 74 | Edit 75 |
78 | 79 |
80 |
Warenkorb
81 | ----------------------
82 | {{ selectedFlug | json }}
83 | 
-------------------------------------------------------------------------------- /app/flug/flug-suchen/flug-suchen.component.ts: -------------------------------------------------------------------------------- 1 | import {Component, AfterViewInit, ViewChild} from '@angular/core'; 2 | import {FlugService} from "../services/flug.service"; 3 | import {Flug} from "../../entities/flug"; 4 | 5 | 6 | @Component({ 7 | selector: 'flug-suchen', 8 | templateUrl: './flug-suchen.component.html', 9 | styleUrls: ['./flug-suchen.component.css'], 10 | }) 11 | export class FlugSuchenComponent { 12 | 13 | public von: string = "Graz"; 14 | public nach: string = "Hamburg"; 15 | public selectedFlug: Flug; 16 | public fluege: Array = []; 17 | 18 | constructor(private flugService: FlugService) { 19 | } 20 | 21 | suchen() { 22 | this 23 | .flugService 24 | .find(this.von, this.nach) 25 | .subscribe( 26 | (fluege: Flug[]) => { 27 | this.fluege = fluege; 28 | }, 29 | (err) => { 30 | console.error("Fehler beim Laden von Flügen!!"); 31 | console.error(err); 32 | } 33 | ); 34 | 35 | 36 | } 37 | 38 | select(flug: Flug): void { 39 | this.selectedFlug = flug; 40 | } 41 | 42 | } 43 | 44 | -------------------------------------------------------------------------------- /app/flug/flug.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import {CommonModule} from "@angular/common"; 3 | import {FormsModule, ReactiveFormsModule} from "@angular/forms"; 4 | import {FlugBuchenComponent} from "./flug-buchen/flug-buchen.component"; 5 | import {FlugSuchenComponent} from "./flug-suchen/flug-suchen.component";import {PassagierSuchenComponent} from "./passagier-suchen/passagier.suchen.component"; 6 | import {FlugService} from "./services/flug.service"; 7 | import {FlugEditComponent} from "./flug-edit/flug-edit.component"; 8 | import {FlugRouterModule} from "./flug.routes"; 9 | import {OrtValidatorDirective} from "../validators/ort.validator.directive"; 10 | import {OrtAsyncValidatorDirective} from "../validators/ort-async.validator.directive"; 11 | import {CityPipe } from '../pipes/city.pipe'; 12 | 13 | @NgModule({ 14 | imports: [CommonModule, FormsModule, FlugRouterModule ], 15 | declarations: [ 16 | FlugBuchenComponent, 17 | FlugSuchenComponent, 18 | PassagierSuchenComponent, 19 | FlugEditComponent, 20 | OrtValidatorDirective, 21 | OrtAsyncValidatorDirective, 22 | CityPipe 23 | ], 24 | // exports: [FlugBuchenComponent, FlugSuchenComponent, FlugSuchenReactiveComponent, PassagierSuchenComponent, FlugEditComponent], 25 | providers: [FlugService] 26 | }) 27 | export class FlugModule { 28 | } 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/flug/flug.routes.ts: -------------------------------------------------------------------------------- 1 | import {FlugEditComponent} from "./flug-edit/flug-edit.component"; 2 | import {PassagierSuchenComponent} from "./passagier-suchen/passagier.suchen.component"; 3 | import {FlugSuchenComponent} from "./flug-suchen/flug-suchen.component"; 4 | import {FlugBuchenComponent} from "./flug-buchen/flug-buchen.component"; 5 | import {RouterModule, Routes } from '@angular/router'; 6 | 7 | const FLUG_ROUTES: Routes = [{ 8 | path: 'flug-buchen', 9 | component: FlugBuchenComponent, 10 | children: [ 11 | { 12 | path: 'flug-suchen', // flug-buchen/flug-suchen 13 | component: FlugSuchenComponent 14 | }, 15 | { 16 | path: 'passagier-suchen', 17 | component: PassagierSuchenComponent 18 | }, 19 | { 20 | path: 'flug-edit/:id', 21 | component: FlugEditComponent 22 | } 23 | ] 24 | }]; 25 | 26 | export const FlugRouterModule = RouterModule.forChild(FLUG_ROUTES); -------------------------------------------------------------------------------- /app/flug/passagier-suchen/passagier.suchen.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'passagier-suchen', 5 | template: ` 6 |

{{info}}

7 | ` 8 | }) 9 | export class PassagierSuchenComponent { 10 | public info = "PassagierSuchen!"; 11 | } -------------------------------------------------------------------------------- /app/flug/services/flug.service.ts: -------------------------------------------------------------------------------- 1 | import { Injectable, Inject } from '@angular/core'; 2 | import { Observable} from 'rxjs'; 3 | import { Http, Headers, URLSearchParams} from '@angular/http'; 4 | import {Flug} from "../../entities/flug"; 5 | 6 | 7 | @Injectable() 8 | export class FlugService { 9 | 10 | constructor(private http: Http) { 11 | } 12 | 13 | fluege: Array = []; 14 | 15 | findById(id: string): Observable { 16 | 17 | let search = new URLSearchParams(); 18 | let url = "http://www.angular.at/api/flug"; 19 | 20 | search.set('flugNummer', id); 21 | 22 | let headers = new Headers(); 23 | //headers.set('Accept', 'text/json'); 24 | 25 | return this.http 26 | .get(url, { search, headers }) 27 | .map(resp => resp.json()); 28 | 29 | } 30 | 31 | 32 | find(von: string, nach: string): Observable { 33 | 34 | let search = new URLSearchParams(); 35 | let url = "http://www.angular.at/api/flug"; 36 | 37 | search.set('abflugort', von); 38 | search.set('zielort', nach); 39 | 40 | let headers = new Headers(); 41 | headers.set('Accept', 'text/json'); 42 | 43 | return this.http 44 | .get(url, { search, headers }) 45 | .map(resp => resp.json()); 46 | 47 | } 48 | 49 | save(flug: Flug): Observable { 50 | 51 | let url = "http://www.angular.at/api/flug"; 52 | 53 | let headers = new Headers(); 54 | headers.set('Accept', 'text/json'); 55 | 56 | return this.http 57 | .post(url, flug, { headers }) 58 | .map(resp => resp.json()); 59 | 60 | } 61 | 62 | } -------------------------------------------------------------------------------- /app/home/home.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { Http } from '@angular/http'; 3 | 4 | 5 | @Component({ 6 | selector: 'home', 7 | template: ` 8 |

{{info}}

9 | ` 10 | }) 11 | export class HomeComponent { 12 | public info = "Willkommen!"; 13 | 14 | } -------------------------------------------------------------------------------- /app/main.aot.ts: -------------------------------------------------------------------------------- 1 | import { platformBrowser } from '@angular/platform-browser'; 2 | import { AppModuleNgFactory } from '../aot/app/app.module.ngfactory'; 3 | 4 | import 'rxjs/add/operator/map'; 5 | import 'rxjs/add/operator/do'; 6 | 7 | platformBrowser().bootstrapModuleFactory(AppModuleNgFactory).catch(err => console.error(err)); 8 | -------------------------------------------------------------------------------- /app/main.jit.ts: -------------------------------------------------------------------------------- 1 | import { AppModule } from './app.module'; 2 | import {platformBrowserDynamic} from "@angular/platform-browser-dynamic"; 3 | 4 | import 'rxjs/add/operator/map'; 5 | import 'rxjs/add/operator/do'; 6 | 7 | platformBrowserDynamic().bootstrapModule(AppModule).catch(err => console.error(err)); 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/pipes/city.pipe.ts: -------------------------------------------------------------------------------- 1 | import {Pipe, PipeTransform } from '@angular/core'; 2 | 3 | @Pipe({ 4 | name: 'city', 5 | pure: true 6 | }) 7 | export class CityPipe implements PipeTransform { 8 | 9 | 10 | transform(value: any, ...args: any[]): any { 11 | 12 | console.debug('CityPipe.transform', value); 13 | 14 | switch(value) { 15 | case "Graz": 16 | return "Flughafen Graz Thalerhof"; 17 | case "Hamburg": 18 | return "Aiport Hamburg Helmut Schmidt"; 19 | default: 20 | return "ROM"; 21 | } 22 | 23 | } 24 | 25 | } -------------------------------------------------------------------------------- /app/polyfills.ts: -------------------------------------------------------------------------------- 1 | // import 'ie-shim'; // Internet Explorer 9 support 2 | 3 | import 'core-js/es6'; 4 | // Added parts of es6 which are necessary for your project or your browser support requirements. 5 | import 'core-js/es6/symbol'; 6 | import 'core-js/es6/object'; 7 | import 'core-js/es6/function'; 8 | import 'core-js/es6/parse-int'; 9 | import 'core-js/es6/parse-float'; 10 | import 'core-js/es6/number'; 11 | import 'core-js/es6/math'; 12 | import 'core-js/es6/string'; 13 | import 'core-js/es6/date'; 14 | import 'core-js/es6/array'; 15 | import 'core-js/es6/regexp'; 16 | import 'core-js/es6/map'; 17 | import 'core-js/es6/set'; 18 | import 'core-js/es6/weak-map'; 19 | import 'core-js/es6/weak-set'; 20 | import 'core-js/es6/typed'; 21 | import 'core-js/es6/reflect'; 22 | // see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709 23 | // import 'core-js/es6/promise'; 24 | 25 | import 'core-js/es7/reflect'; 26 | import 'zone.js/dist/zone'; 27 | import 'zone.js/dist/long-stack-trace-zone'; -------------------------------------------------------------------------------- /app/tests.ts: -------------------------------------------------------------------------------- 1 | import './polyfills'; 2 | import './vendor'; 3 | //import './main'; 4 | 5 | import 'zone.js/dist/async-test.js'; 6 | 7 | // .spec.ts-Dateien explizit angeben 8 | /* 9 | import './flug-suchen/simple.spec'; 10 | import './flug-suchen/flug-suchen.spec'; 11 | import './flug-suchen/flug-suchen.http-mock.spec'; 12 | */ 13 | 14 | // Alle .spec.ts-Dateien laden 15 | var req = (require).context('./', true, /spec\.ts$/); 16 | req.keys().forEach(req); 17 | -------------------------------------------------------------------------------- /app/validators/ort-async.validator.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, Attribute, forwardRef } from '@angular/core'; 2 | import { Validator, AbstractControl, NG_ASYNC_VALIDATORS} from '@angular/forms'; 3 | 4 | @Directive({ 5 | selector: 'input[ortAsync]', 6 | providers: [ 7 | { 8 | provide: NG_ASYNC_VALIDATORS, 9 | useExisting: forwardRef(() => OrtAsyncValidatorDirective), 10 | multi: true 11 | } 12 | ] 13 | }) 14 | export class OrtAsyncValidatorDirective { 15 | 16 | 17 | public validate(c): Promise { 18 | 19 | return new Promise((resove) => { 20 | // Kommunikation mit Server simulieren 21 | setTimeout(() => { 22 | 23 | if (c.value == 'Graz' 24 | || c.value == 'Hamburg') { 25 | resove({}); 26 | } 27 | 28 | resove({ ortAsync: true }); 29 | }, 2000); 30 | }); 31 | 32 | } 33 | 34 | } -------------------------------------------------------------------------------- /app/validators/ort.validator.directive.ts: -------------------------------------------------------------------------------- 1 | import { Directive, Input, forwardRef } from '@angular/core'; 2 | import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/forms'; 3 | 4 | @Directive({ 5 | selector: 'input[ort]', 6 | providers: [ 7 | { 8 | provide: NG_VALIDATORS, 9 | useExisting: forwardRef(() => OrtValidatorDirective), 10 | multi: true 11 | } 12 | ] 13 | }) 14 | export class OrtValidatorDirective implements Validator{ 15 | 16 | @Input() ort: string; 17 | 18 | public validate(c: AbstractControl): any { 19 | 20 | var orte = this.ort.split(','); 21 | 22 | if (orte.indexOf(c.value) > -1) { 23 | return {}; 24 | } 25 | 26 | return { 27 | ort: true 28 | } 29 | 30 | } 31 | 32 | } -------------------------------------------------------------------------------- /app/validators/simple-ort.validator.ts: -------------------------------------------------------------------------------- 1 | import { Directive, Attribute, forwardRef } from '@angular/core'; 2 | import { Validator, AbstractControl, NG_VALIDATORS } from '@angular/forms'; 3 | 4 | @Directive({ 5 | selector: 'input[ort]', 6 | providers: [ 7 | { 8 | provide: NG_VALIDATORS, 9 | useExisting: forwardRef(() => OrtValidatorDirective), 10 | multi: true 11 | } 12 | ] 13 | }) 14 | export class OrtValidatorDirective implements Validator{ 15 | 16 | public validate(c: AbstractControl): any { 17 | 18 | if (c.value == 'Graz' 19 | || c.value == 'Hamburg' 20 | || c.value == 'Frankfurt' 21 | || c.value == 'Wien' 22 | || c.value == 'Mallorca') { 23 | 24 | return {}; 25 | } 26 | 27 | return { 28 | ort: { 29 | actual: c.value 30 | } 31 | } 32 | 33 | 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /app/vendor.ts: -------------------------------------------------------------------------------- 1 | // Vendors 2 | 3 | // Angular 2 4 | import '@angular/platform-browser-dynamic'; 5 | import '@angular/platform-browser'; 6 | import '@angular/core'; 7 | import '@angular/http'; 8 | import '@angular/router'; 9 | 10 | // RxJS 5 11 | // import 'rxjs/Rx'; 12 | import 'rxjs/add/operator/map'; 13 | import 'rxjs/add/operator/do'; 14 | 15 | // require("style!css!bootstrap/dist/css/bootstrap.css"); 16 | 17 | // For vendors for example jQuery, Lodash, angular2-jwt import them here 18 | // Also see src/typings.d.ts as you also need to run `typings install x` where `x` is your module 19 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular2-aot-webpack2-rollup/e713de6930f7aaae771888d7840600801bfe84db/favicon.ico -------------------------------------------------------------------------------- /index.aot.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | AOT 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /index.jit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | JIT 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /index.rollup.aot.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Rollup 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /npm-debug.log.2117612014: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular2-aot-webpack2-rollup/e713de6930f7aaae771888d7840600801bfe84db/npm-debug.log.2117612014 -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "angular2-seed", 3 | "version": "1.0.0", 4 | "description": "A simple starter Angular2 project", 5 | "scripts": { 6 | "build-all": "npm run webpack:jit && npm run webpack:aot && npm run rollup:aot", 7 | "webpack:aot": "ngc -p tsconfig.aot.json --locale=en-US && webpack --config webpack.aot.config.js", 8 | "webpack:jit": "webpack --config webpack.jit.config.js", 9 | "rollup:aot": "ngc -p tsconfig.aot.json --locale=en-US && .\\node_modules\\.bin\\rollup -c rollup.js", 10 | "start": "live-server", 11 | "tsc": "tsc", 12 | "ngc": "ngc -p tsconfig.aot.json --locale=en-US" 13 | }, 14 | "contributors": [ 15 | "Rob Wormald ", 16 | "PatrickJS " 17 | ], 18 | "license": "MIT", 19 | "devDependencies": { 20 | "@types/es6-shim": "^0.0.31", 21 | "@types/jasmine": "^2.2.33", 22 | "@types/node": "^6.0.38", 23 | "@types/protractor": "^1.5.18", 24 | "angular2-template-loader": "^0.5.0", 25 | "awesome-typescript-loader": "^2.2.4", 26 | "compression-webpack-plugin": "^0.3.1", 27 | "es6-promise": "3.0.2", 28 | "es6-shim": "0.35.0", 29 | "file-loader": "^0.8.5", 30 | "html-loader": "^0.4.3", 31 | "jasmine-core": "2.4.1", 32 | "karma": "^0.13.22", 33 | "karma-chrome-launcher": "^0.2.3", 34 | "karma-cli": "^0.1.2", 35 | "karma-coverage": "^1.1.1", 36 | "karma-htmlfile-reporter": "^0.2.2", 37 | "karma-jasmine": "^0.3.8", 38 | "karma-jasmine-html-reporter": "^0.2.1", 39 | "karma-webpack": "^1.7.0", 40 | "raw-loader": "^0.5.1", 41 | "reflect-metadata": "0.1.2", 42 | "rollup": "^0.35.11", 43 | "rollup-plugin-commonjs": "^4.1.0", 44 | "rollup-plugin-node-globals": "^1.0.7", 45 | "rollup-plugin-node-resolve": "^2.0.0", 46 | "rollup-plugin-uglify": "^1.0.1", 47 | "source-map-loader": "^0.1.5", 48 | "typescript": "^2.0.3", 49 | "typings": "^0.7.9", 50 | "webpack": "^2.1.0-beta.21", 51 | "webpack-dev-server": "^2.1.0-beta.0", 52 | "webpack-merge": "^0.8.4" 53 | }, 54 | "dependencies": { 55 | "@angular/common": "2.0.0", 56 | "@angular/compiler": "2.0.0", 57 | "@angular/compiler-cli": "^0.6.2", 58 | "@angular/core": "2.0.0", 59 | "@angular/forms": "2.0.0", 60 | "@angular/http": "2.0.0", 61 | "@angular/platform-browser": "2.0.0", 62 | "@angular/platform-browser-dynamic": "2.0.0", 63 | "@angular/platform-server": "^2.0.0", 64 | "@angular/router": "3.0.0", 65 | "@angular/upgrade": "2.0.0", 66 | "@types/core-js": "^0.9.34", 67 | "@types/es6-shim": "0.0.31", 68 | "angular2-in-memory-web-api": "0.0.20", 69 | "angular2-oauth2": "^1.3.8", 70 | "bootstrap": "^3.3.6", 71 | "core-js": "^2.4.1", 72 | "reflect-metadata": "^0.1.3", 73 | "rxjs": "5.0.0-beta.12", 74 | "systemjs": "0.19.27", 75 | "zone.js": "^0.6.23" 76 | }, 77 | "keywords": [ 78 | "Angular2", 79 | "angular2-seed", 80 | "official angular 2 seed", 81 | "official angular2 seed" 82 | ], 83 | "repository": { 84 | "type": "git", 85 | "url": "git+https://github.com/angular/angular2-seed.git" 86 | }, 87 | "bugs": { 88 | "url": "https://github.com/angular/angular2-seed/issues" 89 | }, 90 | "homepage": "https://github.com/angular/angular2-seed#readme" 91 | } 92 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # Sample for Angular 2 AOT Compilation with Webpack/Rollup and Tree Shaking 2 | 3 | # Build 4 | 5 | To build the sample for Webpack2+JIT, Webpack2+AOT and Rollup+AOT run this npm script: 6 | 7 | ``` 8 | npm run build-all 9 | ``` 10 | 11 | # Start 12 | 13 | ``` 14 | npm start 15 | ``` 16 | 17 | After starting the server and the browser, run one of the following index-files. Each of them starts one of the above mentioned scenarios: 18 | 19 | - index.jit.html (Webpack build + JIT) 20 | - index.aot.html (Webpack build + AOT) 21 | - index.rollup.aot.html (Rollup + AOT) 22 | 23 | -------------------------------------------------------------------------------- /rollup.js: -------------------------------------------------------------------------------- 1 | import rollup from 'rollup' 2 | import nodeResolve from 'rollup-plugin-node-resolve' 3 | import commonjs from 'rollup-plugin-commonjs'; 4 | import uglify from 'rollup-plugin-uglify' 5 | 6 | export default { 7 | entry: 'dist/unbundled-aot/app/main.aot.js', 8 | dest: 'dist/build.js', // output a single application bundle 9 | sourceMap: false, 10 | format: 'iife', 11 | plugins: [ 12 | nodeResolve({jsnext: true, module: true}), 13 | commonjs({ 14 | include: 'node_modules/rxjs/**', 15 | }), 16 | uglify() 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /tests/units.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Unit Tests - A sample project description 6 | 7 | 8 | 9 |

Unit Tests

10 |

A sample project description

11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
Browser: Chrome 52.0.2743 (Windows 10 0.0.0)
Timestamp: 2016-07-29 23:48:22
20 | 4 tests / 21 | 0 errors / 22 | 0 failures / 23 | 0 skipped / 24 | runtime: 0.015s 25 |
StatusSpecSuite / Results
Passed in 0.006sshould have no selected flight initiallyFlugSuchen
Passed in 0.009sshould load flightsFlugSuchen
Passed in 0strue is true1st tests
Passed in 0snull is not the same thing as undefined1st tests
53 |
54 | 55 | -------------------------------------------------------------------------------- /tsconfig.aot.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "module": "es2015", 5 | "moduleResolution": "node", 6 | "declaration": false, 7 | "removeComments": true, 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "sourceMap": true, 11 | "pretty": true, 12 | "allowUnreachableCode": false, 13 | "allowUnusedLabels": false, 14 | "noImplicitAny": false, 15 | "noImplicitReturns": false, 16 | "noImplicitUseStrict": false, 17 | "noFallthroughCasesInSwitch": true, 18 | "outDir": "./dist/unbundled-aot" 19 | }, 20 | "types": [ 21 | "es6", 22 | "node" 23 | ], 24 | "exclude": [ 25 | "node_modules", 26 | "dist" 27 | ], 28 | "angularCompilerOptions": { 29 | "genDir": "aot", 30 | "skipMetadataEmit" : true 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es5", 5 | "outDir": "dist/unbundled", 6 | "sourceMap": true, 7 | "emitDecoratorMetadata": true, 8 | "experimentalDecorators": true, 9 | "moduleResolution": "node", 10 | "types": [ 11 | "es6-shim", 12 | "node" 13 | ] 14 | }, 15 | "exclude": [ 16 | "node_modules" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /webpack.aot.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack'); 2 | var CompressionPlugin = require("compression-webpack-plugin"); 3 | 4 | var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; 5 | 6 | module.exports = { 7 | 8 | profile: true, 9 | devtool: false, 10 | entry: { 11 | 'polyfills': './app/polyfills', 12 | 'app': './app/main.aot' 13 | }, 14 | output: { 15 | path: __dirname + "/dist/aot", 16 | filename: "[name].js", 17 | publicPath: "dist/" 18 | }, 19 | resolve: { 20 | extensions: ['.ts', '.js', '.jpg', '.jpeg', '.gif', '.png', '.css', '.html'] 21 | }, 22 | module: { 23 | loaders: [ 24 | { test: /\.(jpg|jpeg|gif|png)$/, loader:'file-loader?name=img/[path][name].[ext]' }, 25 | { test: /\.(eof|woff|woff2|svg)$/, loader:'file-loader?name=img/[path][name].[ext]' }, 26 | { test: /\.css$/, loader:'raw-loader' }, 27 | { test: /\.html$/, loaders: ['html-loader'] }, 28 | { test: /\.ts$/, loaders: ['awesome-typescript-loader'], exclude: /node_modules/} 29 | ], 30 | exprContextCritical: false, 31 | }, 32 | plugins: [ 33 | new webpack.LoaderOptionsPlugin({ 34 | minimize: true, 35 | debug: false 36 | }), 37 | new webpack.optimize.UglifyJsPlugin({ 38 | compress: { 39 | warnings: false 40 | }, 41 | output: { 42 | comments: false 43 | }, 44 | sourceMap: false 45 | }), 46 | new CompressionPlugin({ 47 | asset: "[path].gz[query]", 48 | algorithm: "gzip", 49 | test: /\.js$|\.html$/, 50 | threshold: 10240, 51 | minRatio: 0.8 52 | }) 53 | ], 54 | node: { 55 | __filename: true 56 | }, 57 | devServer: { 58 | inline:true, 59 | port: 8080, 60 | historyApiFallback: true, 61 | watchOptions: { 62 | aggregateTimeout: 300, 63 | poll: 1000 64 | } 65 | } 66 | 67 | }; 68 | -------------------------------------------------------------------------------- /webpack.jit.config.js: -------------------------------------------------------------------------------- 1 | var webpack = require('webpack'); 2 | var CompressionPlugin = require("compression-webpack-plugin"); 3 | 4 | var CommonsChunkPlugin = webpack.optimize.CommonsChunkPlugin; 5 | 6 | module.exports = { 7 | /* 8 | debug: true, 9 | devtool: 'source-map', 10 | */ 11 | devtool: false, 12 | entry: { 13 | 'polyfills': './app/polyfills', 14 | 'app': './app/main.jit' 15 | }, 16 | output: { 17 | path: __dirname + "/dist/jit", 18 | filename: "[name].js", 19 | publicPath: "dist/" 20 | }, 21 | resolve: { 22 | extensions: ['.ts', '.js', '.jpg', '.jpeg', '.gif', '.png', '.css', '.html'] 23 | }, 24 | module: { 25 | loaders: [ 26 | { test: /\.(jpg|jpeg|gif|png)$/, loader:'file-loader?name=img/[path][name].[ext]' }, 27 | { test: /\.(eof|woff|woff2|svg)$/, loader:'file-loader?name=img/[path][name].[ext]' }, 28 | { test: /\.css$/, loader:'raw-loader' }, 29 | { test: /\.html$/, loaders: ['html-loader'] }, 30 | { test: /\.ts$/, loaders: ['angular2-template-loader', 'awesome-typescript-loader'], exclude: /node_modules/} 31 | ] 32 | }, 33 | plugins: [ 34 | /* 35 | new webpack.LoaderOptionsPlugin({ 36 | minimize: true, 37 | debug: false 38 | }),*/ 39 | new webpack.optimize.UglifyJsPlugin({ 40 | compress: { 41 | warnings: false 42 | }, 43 | output: { 44 | comments: false 45 | }, 46 | sourceMap: false 47 | }), 48 | new CompressionPlugin({ 49 | asset: "[path].gz[query]", 50 | algorithm: "gzip", 51 | test: /\.js$|\.html$/, 52 | threshold: 10240, 53 | minRatio: 0.8 54 | }) 55 | ], 56 | node: { 57 | __filename: true 58 | }, 59 | devServer: { 60 | inline:true, 61 | port: 8080, 62 | historyApiFallback: true, 63 | watchOptions: { 64 | aggregateTimeout: 300, 65 | poll: 1000 66 | } 67 | } 68 | 69 | }; 70 | --------------------------------------------------------------------------------