File tree 1 file changed +0
-24
lines changed
1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -347,30 +347,6 @@ <h3>Import Standalone Components</h3>
347
347
< code > UserProfile</ code > component.
348
348
</ aside >
349
349
</ section >
350
- < section >
351
- < h3 > How does it work?</ h3 >
352
- < pre > < code class ="hljs typescript " data-trim data-noescape >
353
- import { Component, ViewChild, AfterViewInit } from '@angular/core';
354
- import { ProfilePhoto } from './profile-photo.component';
355
-
356
- @Component({
357
- standalone: true,
358
- imports: [ProfilePhoto],
359
- selector: 'user-profile',
360
- template: `< profile-photo /> `
361
- })
362
- export class UserProfile implements AfterViewInit {
363
- < mark > @ViewChild(ProfilePhoto) profilePhotoComponent!: ProfilePhoto;</ mark >
364
-
365
- public photoInfo: string = '';
366
-
367
- ngAfterViewInit() {
368
- < mark > this.photoInfo = this.profilePhotoComponent.getPhotoInfo();</ mark >
369
- < mark > console.log('Photo URL:', this.profilePhotoComponent.photoUrl);</ mark >
370
- }
371
- }
372
- </ code > </ pre >
373
- </ section >
374
350
< section >
375
351
< h3 > Import Modules</ h3 >
376
352
< pre > < code class ="hljs typescript " data-trim data-noescape >
You can’t perform that action at this time.
0 commit comments