Guest User

Untitled

a guest
Jul 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. template: (rf: core.ɵRenderFlags, ctx: ManualComponent) => {
  2. if (rf & 1) { // Create: This runs only on first render
  3. core.ɵE(0, 'h2');
  4. core.ɵT(1, 'Hello, ');
  5. core.ɵT(2); // <-- Placeholder for the name
  6. core.ɵe();
  7. }
  8. if (rf & 2) { // Update: This runs on every change detection
  9. core.ɵt(2, ctx.name); // ctx is our component instance
  10. }
  11. },
Add Comment
Please, Sign In to add comment