Skip to content

Commit 4cd9233

Browse files
committed
docs: update
1 parent 6cd274e commit 4cd9233

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/eslint-plugin/docs/rules/no-empty-lifecycle-method.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,13 @@ class Test implements ng.OnDestroy {
119119
import {DoBootstrap, OnInit} from '@angular/core';
120120
@NgModule()
121121
class Test implements OnInit, DoBootstrap {
122+
ngOnInit() {
123+
this.init();
124+
}
125+
}
126+
127+
@NgModule()
128+
class Test2 implements OnInit, DoBootstrap {
122129
ngOnInit() {}
123130
~~~~~~~~~~~~~
124131
}

0 commit comments

Comments
 (0)