mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user