forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
File renamed without changes.
45 changes: 45 additions & 0 deletions
45
...ompliance/test_cases/r3_view_compiler_i18n/nested_nodes/self_closing_template.pipeline.js
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
function MyComponent_img_1_Template(rf, ctx) { | ||
if (rf & 1) { | ||
$r3$.ɵɵelement(0, "img", 1); | ||
} | ||
} | ||
… | ||
function MyComponent_img_2_Template(rf, ctx) { | ||
if (rf & 1) { | ||
$r3$.ɵɵelementStart(0, "img", 4); | ||
$r3$.ɵɵi18nAttributes(1, 0); | ||
$r3$.ɵɵelementEnd(); | ||
} | ||
if (rf & 2) { | ||
const $ctx_r1$ = $r3$.ɵɵnextContext(); | ||
$r3$.ɵɵi18nExp($ctx_r1$.id); | ||
$r3$.ɵɵi18nApply(1); | ||
} | ||
} | ||
… | ||
decls: 3, | ||
vars: 2, | ||
consts: () => { | ||
__i18nMsg__('App logo #{$interpolation}', [['interpolation', String.raw`\uFFFD0\uFFFD`]], {original_code: {'interpolation': '{{ id }}'}}, {}) | ||
return [ | ||
["title", $i18n_0$], | ||
["src", "logo.png"], | ||
["src", "logo.png", __AttributeMarker.Template__, "ngIf"], | ||
["src", "logo.png", __AttributeMarker.Bindings__, "title", | ||
__AttributeMarker.Template__, "ngIf"], | ||
["src", "logo.png", __AttributeMarker.I18n__, "title"] | ||
]; | ||
}, | ||
template: function MyComponent_Template(rf, ctx) { | ||
if (rf & 1) { | ||
$r3$.ɵɵelement(0, "img", 1); | ||
$r3$.ɵɵtemplate(1, MyComponent_img_1_Template, 1, 0, "img", 2)(2, MyComponent_img_2_Template, 2, 1, "img", 3); | ||
} | ||
if (rf & 2) { | ||
$r3$.ɵɵadvance(1); | ||
$r3$.ɵɵproperty("ngIf", ctx.visible); | ||
$r3$.ɵɵadvance(1); | ||
$r3$.ɵɵproperty("ngIf", ctx.visible); | ||
} | ||
} | ||
|
This file contains 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