Angular EventEmitter

AngularใฎEventEmitterใ€ใชใ‚“ใ ใ‹ใšใฃใจใ‚ใพใ‚Šใ‚ˆใ็†่งฃใงใใฆใ„ใชใ‹ใฃใŸใ€‚

Read More

Angular - ng-template basic

What is ng-template?

ng-template creates templates that are not displayed by default.
It is displayed only when specified when used with a control structure such as if.

Read More

Angular - ng-content basic

What is ng-content?

ng-content is a directive to get and display ContentChildren.
Use this when you want to inject an element into the component from outside.

Read More

Regex basic

Basics

  • . โ€“> Any character (ๆ”น่กŒใ‚’้™คใไปปๆ„ใฎไธ€ๆ–‡ๅญ—)

To search meta characters, escape by a backslash.
(ใƒกใ‚ฟๆ–‡ๅญ—่‡ชไฝ“ใ‚’ๆคœ็ดขใ—ใŸใ„ๅ ดๅˆใฏโ€\โ€œใงใ‚จใ‚นใ‚ฑใƒผใƒ—ใ™ใ‚‹)

Read More

Format Html query strings with VS Code

Goal

Add(Replace with) a new line with VS Code

Step 1: โ˜๏ธ Toggle on Use Regular Expression

Step2 : Enter regex to Search and Replace

1
2
3
4
// Add a new line to both "?" and "&".

Search: (\?|&)
Replace: \n$1
1
2
3
4
5
// Simpler
// Add a new line to "&" only.

Search: &
Replace: \n&

Read More