Skip to content

Commit 5bed2d8

Browse files
committed
Add Angular new features
1 parent cf4ec2b commit 5bed2d8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ You can download the PDF and Epub version of this repository from the latest run
299299
|269| [How to set ngFor and ngIf on the same element?](#how-to-set-ngfor-and-ngif-on-the-same-element)|
300300
|270| [What is host property in css?](#what-is-host-property-in-css)|
301301
|271| [How do you get the current route?](#how-do-you-get-the-current-route)|
302-
|272| [](#)|
303-
|273| [](#)|
302+
|272| [What is Component Test Harnesses?](#what-is-component-test-harnesses)|
303+
|273| [What is the benefit of Automatic Inlining of Fonts?](#what-is-the-benefit-of-automatic-inlining-of-fonts)|
304304
|274| [](#)|
305305
|275| [](#)|
306306
|276| [](#)|
@@ -4566,4 +4566,9 @@ You can download the PDF and Epub version of this repository from the latest run
45664566
3. Access url parameter
45674567
```js
45684568
console.log(this.router.url); // /routename
4569-
```
4569+
```
4570+
272. ### What is Component Test Harnesses?
4571+
A component harness is a testing API around an Angular directive or component to make tests simpler by hiding implementation details from test suites. This can be shared between unit tests, integration tests, and end-to-end tests. The idea for component harnesses comes from the **PageObject** pattern commonly used for integration testing.
4572+
4573+
273. ### What is the benefit of Automatic Inlining of Fonts?
4574+
During compile time, Angular CLI will download and inline the fonts that your application is using. This performance update speed up the first contentful paint(FCP) and this feature is enabled by default in apps built with version 11.

0 commit comments

Comments
 (0)