Angular

315 readers
2 users here now

A community for discussion about angular

Wormhole

[email protected]

Logo base by Angular under CC BY 4.0 with modifications to add a gradient and drop shadow

founded 2 years ago
MODERATORS
1
 
 

Im kind of new to Angular and I think I'm finally starting to understand the difference between canMatch and canActivate guards in terms of behavior, but I still struggle to understand which to use in which scenario.

Let's say I have an application with some component/page that requires a user to be logged in, and also have certain permissions. It seems to me that it doesn't really matter which one to use, right?

And yes, I understand that this is all client side and the actual backend endpoints need to do the same checks, I'm just wondering why you would use one over the other.

Any insights would be welcome.

Note: I'm using Angular 19.

2
3
 
 

Excited 🤩 release of #MaterialM, Available on #Angular18 #dashboard #template

Features MaterialM Angular
- Modern 🤩 Material Design
- Extensive ⚡ Features
- Pre-built 🍂 Components

For More Features 👉 Check it out here - https://www.wrappixel.com/templates/materialm-material-angular-dashboard-template/

@Gallant_Gakii

@[email protected]

@angular @[email protected]

4
5
6
7
 
 

Adding fallback content for ng-content got a lot easier with Angular v18

8
 
 

Was waiting for a long time for jest to replace karma. It seems there is a new test runner overtaking jest for Angular testing: Web Test Runner.

9
10
11
12
13
14
15
16
 
 

i need to import HtmlClient and router, thank you.

17
 
 

Great usecase for the transforming @Input properties.

We will have to refactor a huge (and I mean huge) component for a customer in the near future. The consuming teams should not notice any of this. transform could be very useful for this.

18
19
20
 
 

Never heard and never used this feature of Angular v16.

21
 
 

Has anyone already switched to Jest? Has anyone already gained experience with Playwright Component Tests in Angular?

22
23
 
 

Nice article on how to use the Angular Schematics to convert a project to all standalone components and about what the schematics actually do in every step.

24
 
 

Angular will not mark all parents of a component as dirty if the component uses signals in the template.

25
 
 

Very nice overview on what's new and why it is good from Angular v14 - v17

Unfortunately it is "member-only" on medium.

view more: next ›