Skip to content

Commit

Permalink
docs: exclude lifecycle hooks of the NgOptimizedImage from docs (angu…
Browse files Browse the repository at this point in the history
…lar#47814)

This commit adds the `@nodoc` annotations to the lifecycle hooks of the `NgOptimizedImage` directive to exclude them from the docs.

PR Close angular#47814
  • Loading branch information
AndrewKushnir authored and trekladyone committed Feb 1, 2023
1 parent 2836b47 commit a95fbfe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
*/
@Input() srcset?: string;

/** @nodoc */
ngOnInit() {
if (ngDevMode) {
assertNonEmptyInput(this, 'ngSrc', this.ngSrc);
Expand Down Expand Up @@ -433,6 +434,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
}
}

/** @nodoc */
ngOnChanges(changes: SimpleChanges) {
if (ngDevMode) {
assertNoPostInitInputChange(
Expand Down Expand Up @@ -503,6 +505,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
return finalSrcs.join(', ');
}

/** @nodoc */
ngOnDestroy() {
if (ngDevMode) {
if (!this.priority && this._renderedSrc !== null && this.lcpObserver !== null) {
Expand Down

0 comments on commit a95fbfe

Please sign in to comment.