Created
July 4, 2017 19:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ignoreProblemForFile annotate_overrides | |
// @ignoreProblemForFile cancel_subscriptions | |
// @ignoreProblemForFile constant_identifier_names | |
// @ignoreProblemForFile non_constant_identifier_names | |
// @ignoreProblemForFile implementation_imports | |
// @ignoreProblemForFile library_prefixes | |
// @ignoreProblemForFile type_annotate_public_apis | |
// @ignoreProblemForFile STRONG_MODE_DOWN_CAST_COMPOSITE | |
// @ignoreProblemForFile UNUSED_IMPORT | |
// @ignoreProblemForFile UNUSED_SHOWN_NAME | |
// @ignoreProblemForFile UNUSED_LOCAL_VARIABLE | |
import 'demo.dart'; | |
import 'package:angular2/src/core/reflection/reflection.dart' as _ngRef; | |
import 'package:angular2/core.dart'; | |
import 'package:angular2/angular2.template.dart' as i0; | |
import 'package:angular2/core.template.dart' as i1; | |
export 'demo.dart'; | |
import 'package:angular2/src/debug/debug_context.dart'; | |
import 'package:angular2/src/debug/debug_app_view.dart'; | |
import 'demo.dart' as import2; | |
import 'package:angular2/src/core/render/api.dart'; | |
import 'package:angular2/src/core/linker/app_view.dart'; | |
import 'package:angular2/src/core/linker/view_type.dart' as import5; | |
import 'package:angular2/src/core/change_detection/change_detection.dart'; | |
import 'dart:html'; | |
import 'package:angular2/src/core/linker/app_view_utils.dart' as import8; | |
import 'package:angular2/angular2.dart'; | |
const List<dynamic> styles_Demo = const []; | |
List<StaticNodeDebugInfo> nodeDebugInfos_Demo0 = [null]; | |
class ViewDemo0 extends DebugAppView<import2.Demo> { | |
static RenderComponentType renderType; | |
ViewDemo0(AppView<dynamic> parentView, num parentIndex) | |
: super(import5.ViewType.COMPONENT, {}, parentView, parentIndex, | |
ChangeDetectionStrategy.CheckAlways, nodeDebugInfos_Demo0) { | |
rootEl = document.createElement('demo'); | |
renderType ??= import8.appViewUtils.createRenderType( | |
'asset:bugdemo/lib/demo.dart class Demo - inline template', | |
ViewEncapsulation.None, | |
styles_Demo); | |
setupComponentType(renderType); | |
} | |
ComponentRef build() { | |
final import2.Demo _ctx = ctx; | |
final HtmlElement parentRenderNode = initViewRoot(rootEl); | |
Text _text_0 = new Text('Hello World Once, but demo prints twice!'); | |
parentRenderNode.append(_text_0); | |
dbgElm(this, _text_0, 0, 0, 0); | |
init(const [], const [], [_text_0]); | |
return null; | |
} | |
} | |
AppView<import2.Demo> viewFactory_Demo0( | |
AppView<dynamic> parentView, num parentIndex) { | |
return new ViewDemo0(parentView, parentIndex); | |
} | |
const List<dynamic> styles_DemoHost = const []; | |
List<StaticNodeDebugInfo> nodeDebugInfos_DemoHost0 = [ | |
new StaticNodeDebugInfo([import2.Demo], import2.Demo, <String, dynamic>{}) | |
]; | |
class ViewDemoHost0 extends DebugAppView<dynamic> { | |
ViewDemo0 _compView_0; | |
import2.Demo _Demo_0_2; | |
static RenderComponentType renderType; | |
ViewDemoHost0(AppView<dynamic> parentView, num parentIndex) | |
: super(import5.ViewType.HOST, {}, parentView, parentIndex, | |
ChangeDetectionStrategy.CheckAlways, nodeDebugInfos_DemoHost0) { | |
renderType ??= import8.appViewUtils | |
.createRenderType('', ViewEncapsulation.Emulated, styles_DemoHost); | |
setupComponentType(renderType); | |
} | |
ComponentRef build() { | |
final _ctx = ctx; | |
_compView_0 = new ViewDemo0(this, 0); | |
rootEl = _compView_0.rootEl; | |
dbgIdx(rootEl, 0); | |
_Demo_0_2 = new import2.Demo(); | |
_compView_0.create(_Demo_0_2, projectableNodes); | |
init([rootEl], const [], [rootEl]); | |
return new ComponentRef(0, this, rootEl, _Demo_0_2); | |
} | |
dynamic injectorGetInternal( | |
dynamic token, int nodeIndex, dynamic notFoundResult) { | |
if ((identical(token, import2.Demo) && (0 == nodeIndex))) { | |
return _Demo_0_2; | |
} | |
return notFoundResult; | |
} | |
void detectChangesInternal() { | |
bool firstCheck = identical(this.cdState, ChangeDetectorState.NeverChecked); | |
final _ctx = ctx; | |
if (!import8.AppViewUtils.throwOnChanges) { | |
dbg(0, 0, 0); | |
if (firstCheck) { | |
_Demo_0_2.ngAfterContentInit(); | |
} | |
} | |
_compView_0.detectChanges(); | |
} | |
void destroyInternal() { | |
_compView_0.destroy(); | |
} | |
} | |
AppView viewFactory_DemoHost0(AppView<dynamic> parentView, num parentIndex) { | |
return new ViewDemoHost0(parentView, parentIndex); | |
} | |
const ComponentFactory DemoNgFactory = const ComponentFactory( | |
'demo', viewFactory_DemoHost0, import2.Demo, _METADATA); | |
const _METADATA = const <dynamic>[Demo, const <dynamic>[]]; | |
var _visited = false; | |
void initReflector() { | |
if (_visited) return; | |
_visited = true; | |
_ngRef.reflector | |
..registerType( | |
Demo, | |
new _ngRef.ReflectionInfo(const <dynamic>[DemoNgFactory], const [], | |
() => new Demo(), const <dynamic>[AfterContentInit])); | |
i0.initReflector(); | |
i1.initReflector(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment