From c0d4d93b4048405245d67e4f92fc1e2a6bfe615f Mon Sep 17 00:00:00 2001 From: sudheerj Date: Sat, 10 Oct 2020 14:27:49 +0530 Subject: [PATCH 01/71] Escape new line characters --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 33629f7..c0ec520 100644 --- a/README.md +++ b/README.md @@ -2872,7 +2872,7 @@ You can download the PDF and Epub version of this repository from the latest run 172. ### Is angular prevents http level vulnerabilities? Angular has built-in support for preventing http level vulnerabilities such as as cross-site request forgery (CSRF or XSRF) and cross-site script inclusion (XSSI). Even though these vulnerabilities need to be mitigated on server-side, Angular provides helpers to make the integration easier on the client side. 1. HttpClient supports a token mechanism used to prevent XSRF attacks - 2. HttpClient library recognizes the convention of prefixed JSON responses(which non-executable js code with ")]}',\n" characters) and automatically strips the string ")]}',\n" from all responses before further parsing + 2. HttpClient library recognizes the convention of prefixed JSON responses(which non-executable js code with ")]}',\\n" characters) and automatically strips the string ")]}',\\n" from all responses before further parsing **[⬆ Back to Top](#table-of-contents)** From 3f9a973c39e9a6d492acccc4ba25c56c08941e0e Mon Sep 17 00:00:00 2001 From: sudheerj Date: Sun, 11 Oct 2020 23:40:57 +0530 Subject: [PATCH 02/71] Fix pandoc pdf generation issue --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0ec520..dcfa199 100644 --- a/README.md +++ b/README.md @@ -1819,11 +1819,13 @@ You can download the PDF and Epub version of this repository from the latest run 94. ### What is the purpose of any type cast function? You can disable binding expression type checking using $any() type cast function(by surrounding the expression). In the following example, the error Property contacts does not exist is suppressed by casting user to the any type. ```javascript - template: '{{$any(user).contacts.email}}' + template: + '{{ $any(user).contacts.email }}' ``` The $any() cast function also works with this to allow access to undeclared members of the component. ```javascript - template: '{{$any(this).contacts.email}}' + template: + '{{ $any(this).contacts.email }}' ``` **[⬆ Back to Top](#table-of-contents)** From cf4ec2b8caac650de99edc906a1ec0f6f3b2cdee Mon Sep 17 00:00:00 2001 From: sudheerj Date: Mon, 2 Nov 2020 22:03:26 +0530 Subject: [PATCH 03/71] Upgrade pandoc to fix epub issue --- .github/workflows/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 7c87150..8a32fac 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -16,12 +16,12 @@ jobs: mkdir output # create output dir - name: Create PDF - uses: docker://pandoc/latex:2.9 + uses: docker://pandoc/latex:2.10 with: args: --pdf-engine=xelatex --output=output/${{env.FILE_NAME}}.pdf README.md - name: Create epub - uses: docker://pandoc/latex:2.9 + uses: docker://pandoc/latex:2.10 with: args: --output=output/${{env.FILE_NAME}}.epub README.md From 5bed2d878fe40e6dbdac9ce402c26e62f891813f Mon Sep 17 00:00:00 2001 From: sudheerj Date: Mon, 16 Nov 2020 22:00:44 +0530 Subject: [PATCH 04/71] Add Angular new features --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dcfa199..7aa336d 100644 --- a/README.md +++ b/README.md @@ -299,8 +299,8 @@ You can download the PDF and Epub version of this repository from the latest run |269| [How to set ngFor and ngIf on the same element?](#how-to-set-ngfor-and-ngif-on-the-same-element)| |270| [What is host property in css?](#what-is-host-property-in-css)| |271| [How do you get the current route?](#how-do-you-get-the-current-route)| -|272| [](#)| -|273| [](#)| +|272| [What is Component Test Harnesses?](#what-is-component-test-harnesses)| +|273| [What is the benefit of Automatic Inlining of Fonts?](#what-is-the-benefit-of-automatic-inlining-of-fonts)| |274| [](#)| |275| [](#)| |276| [](#)| @@ -4566,4 +4566,9 @@ You can download the PDF and Epub version of this repository from the latest run 3. Access url parameter ```js console.log(this.router.url); // /routename - ``` \ No newline at end of file + ``` +272. ### What is Component Test Harnesses? + 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. + +273. ### What is the benefit of Automatic Inlining of Fonts? + 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. \ No newline at end of file From 7dd2d8987a3c48827d9d419dd68f166407b85af6 Mon Sep 17 00:00:00 2001 From: Yuvaraj <15032282+yuvgeek@users.noreply.github.com> Date: Sat, 2 Jan 2021 11:10:38 +0530 Subject: [PATCH 05/71] fix format in Readme --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7aa336d..60bb549 100644 --- a/README.md +++ b/README.md @@ -723,7 +723,7 @@ You can download the PDF and Epub version of this repository from the latest run 23. ### What happens if you use script tag inside template? - Angular recognizes the value as unsafe and automatically sanitizes it, which removes the **