docs: exclude lifecycle hooks of the NgOptimizedImage from docs (#47814)

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

PR Close #47814
This commit is contained in:
Andrew Kushnir
2022-10-19 11:59:48 -07:00
committed by Dylan Hunn
parent fc07efdd2b
commit 177c55686d
@@ -352,6 +352,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
*/
@Input() srcset?: string;
/** @nodoc */
ngOnInit() {
if (ngDevMode) {
assertNonEmptyInput(this, 'ngSrc', this.ngSrc);
@@ -433,6 +434,7 @@ export class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
}
}
/** @nodoc */
ngOnChanges(changes: SimpleChanges) {
if (ngDevMode) {
assertNoPostInitInputChange(
@@ -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) {