Angular-cli: TsLint= >Implement lifecycle hook interface OnInit for method ngOnInit

Created on 17 Jan 2017  路  4Comments  路  Source: angular/angular-cli

Running

angular-cli: 1.0.0-beta.24
node: 4.6.0
os: darwin x64

Description

Tried to utilize latest Angular's addition for the inheritance
Angular Commit

where lifecycle hook interface is implemented on the parent level and Child component just override the method and it seems tslint is not uptodate with this .

"use-life-cycle-interface": true,

It should probably check all the way up to the parent if the interface is implemented.

Thank you,

Frank

Most helpful comment

Add "implements Oninit"

export class AppComponent implements OnInit

All 4 comments

Please open this issue on https://github.com/mgechev/codelyzer instead, which is the linter that implements the rule.

thanks I will

Add "implements Oninit"

export class AppComponent implements OnInit

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings