Get to Know How to Apply a Default Content in Angular Components

  Рет қаралды 547

Code Shots With Profanis

Code Shots With Profanis

Күн бұрын

Пікірлер: 4
@CodeShotsWithProfanis
@CodeShotsWithProfanis 7 ай бұрын
Angular Content Projection: Everything You Need to Know kzbin.info/www/bejne/mWrFaJ-Zn92IftE Angular ng-template: The Complete Guide to ng-template kzbin.info/www/bejne/m3SWhGyDq5Wti5o
@madpwnz
@madpwnz 7 ай бұрын
Thanks for the video mate!
@mikhailratner4649
@mikhailratner4649 7 ай бұрын
Interesting...I would never go to such lengths as you showed in the version prior to v18. I would just create a second Input and have an if else statement. However, the v18 version actually looks quite nice. If I understood corrctly, the actual content is by default linked to ng-content and Angular does the rest, which makes it much more concise. I wonder if there are better uses / examples which are more closely to real life. E.g. would it make sense to have some loading spinner as default content!?
@CodeShotsWithProfanis
@CodeShotsWithProfanis 7 ай бұрын
> the actual content is by default linked to ng-content and Angular does the rest Yeah, that's correct. Some real-life scenarios could be: - You can have an image placeholder if content is missing - You can have some default buttons (call to actions) if content is missing
Get to Know Signal Queries in Angular 17
17:43
Code Shots With Profanis
Рет қаралды 2,1 М.
Get to Know the Model Input Function in Angular 17
10:17
Code Shots With Profanis
Рет қаралды 1,5 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Get to Know How The Angular RedirectTo Function Works
10:06
Code Shots With Profanis
Рет қаралды 786
ngTemplateOutlet is WAY more useful than I realised
16:36
Joshua Morony
Рет қаралды 78 М.
Angular | Implement Your Own Infinite Scroll In Less Than 20 minutes
16:43
Local Change Detection in Angular is easy with Signals
10:40
Code Shots With Profanis
Рет қаралды 3 М.
Creating a Custom Component | Components | Angular 12+
21:58
procademy
Рет қаралды 97 М.
Content Projection in Angular - Complete Guide (Beginners/Advanced)
26:18
Getting Started with NGXS 18 and Angular 18
29:53
Code Shots With Profanis
Рет қаралды 2,1 М.
Learn How to Use Angular's 17 Defer Block
23:50
Code Shots With Profanis
Рет қаралды 4,2 М.
Angular Image Upload Made Easy
12:43
Academind
Рет қаралды 420 М.