Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- selector: 'app-some-component',
- template: `
- <ng-tempate>
- <p>Hello world!</p>
- </ng-tempate>
- `
- })
- export class SomeComponent {}
- function SomeComponent_ng_template_0_Template(rf: RenderFlags, ctx: SomeComponent) {
- if (rf & 1) {
- elementStart(0, 'p'),
- text(1, 'Hello world!'),
- elementEnd()
- }
- }
- class SomeComponent {
- public static ngComponentDef: never = defineComponent({
- type: SomeComponent,
- selectors: [['app-some-component']],
- factory: () => new SomeComponent(),
- consts: 1,
- vars: 0,
- template: (rf: RenderFlags, ctx: SomeComponent) => {
- if (rf & 1) {
- template(
- 0,
- SomeComponent_ng_template_0_Template,
- 2,
- 0,
- 'ng-template'
- );
- }
- }
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement