Skip to content

Commit 713fc1e

Browse files
author
Johannes Huster
committed
Add constructor param type that leads to error
1 parent 80e5f4d commit 713fc1e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

projects/my-app/src/app/app.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Component } from '@angular/core';
2+
import { MyLibService } from 'my-lib';
23

34
@Component({
45
selector: 'app-root',
@@ -7,4 +8,7 @@ import { Component } from '@angular/core';
78
})
89
export class AppComponent {
910
title = 'my-app';
11+
12+
constructor(private myLibService: MyLibService) {}
13+
1014
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Injectable } from '@angular/core';
1+
import { Injectable, Inject } from '@angular/core';
2+
import { DOCUMENT } from '@angular/common';
23

34
@Injectable({
45
providedIn: 'root'
56
})
67
export class MyLibService {
78

8-
constructor() { }
9+
constructor(@Inject(DOCUMENT) private document: Document) { }
910
}

0 commit comments

Comments
 (0)