Skip to content

Commit

Permalink
Merge pull request #26 from angular-extensions/feature/documentLogNgHTML
Browse files Browse the repository at this point in the history
fix: 🐛 document the exported logNgHTML function
  • Loading branch information
nivekcode authored Nov 30, 2020
2 parents 7a53370 + 43191cf commit 6a1bb85
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ In your test you can simply write the following line.
console.logNgHTML(fixture.debugElement.query(By.css('mat-tab-body')));
```

Which will print the following string to your console
Which will print the following string to your console. Depending on your test configuration you
might run into an issue with the patch of the console. In such cases its best to report an [issue](https://github.com/angular-extensions/pretty-html-log/issues) and use the `logNgHTML` function directly.

```typescript
logNgHTML(fixture.debugElement.query(By.css('mat-tab-body')));
```

![logNgHTML](https://raw.githubusercontent.com/angular-extensions/pretty-html-log/master/images/output.png)

Expand Down

0 comments on commit 6a1bb85

Please sign in to comment.