Skip to content

Commit

Permalink
docs: updated docs removed unnecessary imports and empty methods (#48428
Browse files Browse the repository at this point in the history
)

Removed empty methods and unnecessary imports in files

PR Close #48428
  • Loading branch information
Piyush132000 authored and thePunderWoman committed Dec 12, 2022
1 parent 59c6bfb commit ffb2c9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class CartService {

constructor() {}

}
export class CartService {}
10 changes: 2 additions & 8 deletions aio/content/examples/ngmodules/src/app/items/items.component.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';

@Component({
selector: 'app-items',
templateUrl: './items.component.html',
styleUrls: ['./items.component.css']
})
export class ItemsComponent implements OnInit {
export class ItemsComponent {}

constructor() { }

ngOnInit() {
}

}
4 changes: 0 additions & 4 deletions aio/content/examples/providers/src/app/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ export interface User {
providedIn: 'root',
})
export class UserService {

constructor() { }

getUsers(): Promise<User[]> {
return Promise.resolve([
{ id: 1, name: 'Maria' },
Expand All @@ -26,5 +23,4 @@ export class UserService {
{ id: 10, name: 'Seth' }
]);
}

}

0 comments on commit ffb2c9c

Please sign in to comment.