Skip to content

Commit 8561868

Browse files
Piyush132000devversion
authored andcommitted
docs: updated docs removed unnecessary imports and empty methods (angular#48513)
Removed empty methods and unnecessary imports in files PR Close angular#48513
1 parent f8b3744 commit 8561868

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'app-orders',
55
templateUrl: './orders.component.html',
66
styleUrls: ['./orders.component.css']
77
})
8-
export class OrdersComponent implements OnInit {
9-
10-
constructor() { }
11-
12-
ngOnInit() {
13-
}
14-
15-
}
8+
export class OrdersComponent {}
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'lib-my-lib',
@@ -9,11 +9,4 @@ import { Component, OnInit } from '@angular/core';
99
`,
1010
styles: []
1111
})
12-
export class MyLibComponent implements OnInit {
13-
14-
constructor() { }
15-
16-
ngOnInit() {
17-
}
18-
19-
}
12+
export class MyLibComponent {}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { Component } from '@angular/core';
22

33
@Component({
44
selector: 'toh-heroes',
55
templateUrl: './heroes.component.html'
66
})
7-
export class HeroesComponent implements OnInit {
8-
constructor() { /* ... */ }
9-
10-
ngOnInit() { /* ... */ }
11-
}
7+
export class HeroesComponent {}

0 commit comments

Comments
 (0)