Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template: (rf: core.ɵRenderFlags, ctx: ManualComponent) => {
- if (rf & 1) { // Create: This runs only on first render
- core.ɵE(0, 'h2');
- core.ɵT(1, 'Hello, ');
- core.ɵT(2); // <-- Placeholder for the name
- core.ɵe();
- }
- if (rf & 2) { // Update: This runs on every change detection
- core.ɵt(2, ctx.name); // ctx is our component instance
- }
- },
Add Comment
Please, Sign In to add comment