Skip to content

Commit 45763eb

Browse files
author
Eyüphan Yilmaz
committed
Revert "Add one more slide for standalone components"
This reverts commit 8f0bb65.
1 parent 8f0bb65 commit 45763eb

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

ng-module/index.html

-24
Original file line numberDiff line numberDiff line change
@@ -347,30 +347,6 @@ <h3>Import Standalone Components</h3>
347347
<code>UserProfile</code> component.
348348
</aside>
349349
</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>
374350
<section>
375351
<h3>Import Modules</h3>
376352
<pre><code class="hljs typescript" data-trim data-noescape>

0 commit comments

Comments
 (0)