diff --git a/ng-module/index.html b/ng-module/index.html index fef9268..6b2c036 100644 --- a/ng-module/index.html +++ b/ng-module/index.html @@ -347,30 +347,6 @@

Import Standalone Components

UserProfile component. -
-

How does it work?

-
 
-                import { Component, ViewChild, AfterViewInit } from '@angular/core';
-                import { ProfilePhoto } from './profile-photo.component';
-                
-                @Component({
-                  standalone: true,
-                  imports: [ProfilePhoto],
-                  selector: 'user-profile',
-                  template: ``
-                })
-                export class UserProfile implements AfterViewInit {
-                  @ViewChild(ProfilePhoto) profilePhotoComponent!: ProfilePhoto;
-                
-                  public photoInfo: string = '';
-                
-                  ngAfterViewInit() {
-                    this.photoInfo = this.profilePhotoComponent.getPhotoInfo();
-                    console.log('Photo URL:', this.profilePhotoComponent.photoUrl);
-                  }
-                }
-                  
-

Import Modules