Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. @Component({
  2. selector: 'app-some-component',
  3. template: `
  4. <ng-tempate>
  5. <p>Hello world!</p>
  6. </ng-tempate>
  7. `
  8. })
  9. export class SomeComponent {}
  10.  
  11. function SomeComponent_ng_template_0_Template(rf: RenderFlags, ctx: SomeComponent) {
  12. if (rf & 1) {
  13. elementStart(0, 'p'),
  14. text(1, 'Hello world!'),
  15. elementEnd()
  16. }
  17. }
  18.  
  19. class SomeComponent {
  20. public static ngComponentDef: never = defineComponent({
  21. type: SomeComponent,
  22. selectors: [['app-some-component']],
  23. factory: () => new SomeComponent(),
  24. consts: 1,
  25. vars: 0,
  26. template: (rf: RenderFlags, ctx: SomeComponent) => {
  27. if (rf & 1) {
  28. template(
  29. 0,
  30. SomeComponent_ng_template_0_Template,
  31. 2,
  32. 0,
  33. 'ng-template'
  34. );
  35. }
  36. }
  37. })
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement